moth/doc/2011-02-UNM/state/tanks/players/c206e4c6/program

12 lines
885 B
Plaintext
Raw Normal View History

2011-02-12 20:25:34 -07:00
37 40 set-speed! ( Go in circles )
0 sensor? { fire! } if ( Fire if turret sensor triggered )
1 sensor? { get-turret 90 + set-turret! } if ( Turn if collision sensor triggered )
2 sensor? { get-turret 180 + set-turret! } if ( Turn if collision sensor triggered )
3 sensor? { get-turret 270 + set-turret! } if ( Turn if collision sensor triggered )
4 sensor? { get-turret 45 + set-turret! } if ( Turn if collision sensor triggered )
5 sensor? { get-turret 135 + set-turret! } if ( Turn if collision sensor triggered )
6 sensor? { get-turret 225 + set-turret! } if ( Turn if collision sensor triggered )
7 sensor? { get-turret 315 + set-turret! } if ( Turn if collision sensor triggered )
8 sensor? { 70 20 set-speed! } if ( Turn if collision sensor triggered )
9 sensor? { 20 70 set-speed! } if ( Turn if collision sensor triggered )