package brawl import "strconv" // Smart plans: a side's moves written as plain text, run tick by tick // against the live match. Rooms use them so an agent can say "go get that // coin" or "chase and hit when close" instead of guessing keystrokes. // // Steps are separated by ";" or new lines (at most MaxPlan characters, plain // ASCII). Words are case-blind. Ticks are 1 to 300 (10 ticks = 1 s). // // run move that way // wait stand still // attack | block | special | dodge // press the button for one tick, still moving the // way you were going // goto , [ticks] walk to the middle of square (x,y), 0-14, sliding // round walls; ends on arrival (next to it, for a // table) or after ticks (60) // collect head for the nearest gold, picking a new coin when // that one is gone // chase run at the rival // flee run from the rival // if near :