21 lines
233 B
JavaScript
21 lines
233 B
JavaScript
import {run, svg} from "./ludus.mjs"
|
|
|
|
const code = `
|
|
|
|
let home = unbox (turtle_state)
|
|
|
|
fd! (100)
|
|
|
|
loadstate! (home)
|
|
|
|
rt! (0.25)
|
|
fd! (100)
|
|
|
|
do turtle_state > unbox
|
|
|
|
`
|
|
|
|
const result = run(code)
|
|
|
|
console.log(svg(result.io.turtle.data))
|