snek
snek copied to clipboard
Pattern tree with conditions
Now patterns are sequential: each pattern follows previous and doesn't apply if the previous pattern matches. If we add conditional pattern: it doesn't apply to snek's move, only split patterns to "yes" and "no" branches and next pattern in matched branch used to find move direction.
Rules patterns not sequential, but logical. Patterns can go step by step or be split by condition (pattern matched - yes, no). Limit patterns by 9-15. Only for pro account.