1
0
Fork 0
mirror of https://github.com/dirtbags/moth.git synced 2025-01-05 11:30:41 -07:00
moth/doc/2010-10-NMT/state/tanks/players/51152aaf/program
2010-11-19 16:24:06 -07:00

15 lines
No EOL
363 B
Text

82 80 set-speed!
0 set-turret!
5 sensor? { 100 40 set-speed! } if
6 sensor? { 40 100 set-speed! } if
3 sensor? { 0 0 set-speed! } if
1 sensor? { get-turret 3 + set-turret! } if
2 sensor? { get-turret 3 - set-turret! } if
8 sensor? { get-turret set-turret! } if
0 sensor? { fire-ready? { fire! } if } if
0 set-led!
fire-ready? { 1 set-led! } if