moth/doc/2010-10-NMT/state/tanks/players/7f6ac784/program

13 lines
452 B
Plaintext

0 sensor? {fire!} if
8 sensor? {-100 -90 set-speed!} if
100 75 set-speed!
6 sensor? 7 sensor? =
1 = { 0 set-turret!} if
6 sensor? {get-turret 12 + set-turret!} if
7 sensor? {get-turret 12 - set-turret!} if
1 sensor? {0 100 set-speed!} if
2 sensor? {100 0 set-speed!} if
3 sensor? {100 -100 set-speed!} if
4 sensor? {-100 100 set-speed!} if
5 sensor? {100 100 set-speed!} if
fire-ready? ! 8 sensor? & {-100 -50 set-speed!} if