Algorithm
Write the rule as code: a function body receiving the row and returning the action. It is compiled into a table for every row up to the graph’s largest degree, so the engine and the exact game use exactly what you wrote. Rows in the table below still win over it.
Undefined rows
c t p
Rows you define below always win over the default. With “nothing”, the first undefined row the agent reads stops the play and asks you for its action, so a rule can be built while playing.
Defined rows
rows starting with this text; at most 2000 shown
paint target
Import / export
One row paint>target per line, the engine’s rule_final.txt format; lines starting with # are ignored.