Neale Pickett
·
2024-12-05
index.md
1---
2title: Tanks
3scripts:
4 - assets/js/tanks.js
5 - assets/js/figures.js
6---
7
8<figure>
9 <canvas id="antlion"></canvas>
10 <figcaption>"Ant Lion" nails "Rabbit With Gun".</figcaption>
11 <script type="application/javascript">
12 start("antlion", antlion);
13 </script>
14</figure>
15
16Dirtbags Tanks is a game in which you pit your coding abilities
17against other hackers. You write a program for your tank, set it out
18on the battlefield, and watch how your program fares against tanks
19written by other players. Dirtbags Tanks is frequently a component of
20[Dirtbags Capture The Flag](/ctf/).
21
22Each tank has a turret-mounted laser, two treads, up to ten sensors,
23and a diagnostic LED. Sensors are used to detect when other tanks are
24inside a given arc. In the examples on this page, "triggered" sensors
25turn black. Most tanks will take some action if a sensor is
26triggered, such as changing speed of the treads, turning the turret,
27or firing.
28
29Tanks are programmed in Forf, a stack-based language similar to
30PostScript.
31
32
33Other Versions
34--------------
35
36Everybody loves tanks!
37If you've made a port or done something fun with it,
38please let me know and I'll link it here!
39
40* [Class Lab](https://github.com/Arctem/nmt_python_labs/tree/master/labs/project) at New Mexico Tech, by Russell White
41
42
43Author
44------
45
46Neale Pickett <neale@woozle.org>