// PKGPATH: gno.land/r/g1ftppd2jpfx0p8cy08th4u9whwvqcpychhlad28/z2 // Plain-text plans compile to input characters. package z2 import ( rules "gno.land/p/g1ftppd2jpfx0p8cy08th4u9whwvqcpychhlad28/brawl/v2" "gno.land/r/g1ftppd2jpfx0p8cy08th4u9whwvqcpychhlad28/rooms/v2" ) func main(cur realm) { p := rooms.Compile("run SE 3; attack; wait 2\nrun 4 2; special; run nw 200", 12) println(len(p), p) for i := 0; i < len(p); i++ { m, a, _ := rules.Decode(p[i]) print(m, "/", a, " ") } println() println(revive(func() { rooms.Compile("jump 3", 10) })) } // Output: // 12 %%%633''Z--- // 2 / 0 2 / 0 2 / 0 2 / 1 16 / 0 16 / 0 4 / 0 4 / 0 4 / 3 10 / 0 10 / 0 10 / 0 // plan step "jump 3": unknown word "jump"