- Home
- - Running
+ - Introduction
+ - Forf
+ - Procedures
- History
- Thanks
- Source
diff --git a/docs/forf.html.m4 b/docs/forf.html.m4
deleted file mode 100644
index 65a4de5..0000000
--- a/docs/forf.html.m4
+++ /dev/null
@@ -1,13 +0,0 @@
-
-
-
- Forf Manual
-
-
-
-
-syscmd(markdown forf.txt)
-include(nav.html.inc)
-
-
-
diff --git a/docs/intro.md b/docs/intro.md
index 7d2e2eb..d4210e9 100644
--- a/docs/intro.md
+++ b/docs/intro.md
@@ -46,7 +46,7 @@ and use the following example tank. This tank will
move around, turn the turret, and fire if there's something in
front of it.
- Sensor 0: 50 0 7 ☑
+ Sensor 0: 50 0 7 ☑
Sensor 1: 30 0 90 ☐
get-turret 12 + set-turret! ( Rotate turret )
@@ -54,10 +54,10 @@ front of it.
0 sensor? { fire! } if ( Fire if turret sensor triggered )
1 sensor? { -50 50 set-speed! } if ( Turn if collision sensor triggered )
-Obviously, this tank could be improved.
+This tank can be improved!
Watch other tanks in your game to get ideas about how to improve yours.
Don't forget the [Forf manual](forf.md) and the
-[Tank procedure reference](procs.html).
+[Tank procedure reference](procs.md).
## Tank Specifications
diff --git a/docs/nav.html.inc b/docs/nav.html.inc
deleted file mode 100644
index b2ea44f..0000000
--- a/docs/nav.html.inc
+++ /dev/null
@@ -1,10 +0,0 @@
-
diff --git a/docs/procs.html.m4 b/docs/procs.html.m4
deleted file mode 100644
index 2510df0..0000000
--- a/docs/procs.html.m4
+++ /dev/null
@@ -1,74 +0,0 @@
-
-
-
- Tanks Procedure Reference
-
-
-
-
- Tanks Procedure Reference
-
-
- Each tank's program is run once per turn. The data and command
- stacks are reset at the beginning of each turn, but memory is not,
- so you can carry data over in memory registers if you want. See
- the Forf manual for more information about
- the base language.
-
-
-
- For tank specifications (sensor range, maximum speeds, etc.), see
- the introduction.
-
-
-
- Limits
-
-
- Forf Tanks has a data stack size of 200, and a command stack size
- of 500. This means your program cannot have more than 200 data
- items, or 500 instructions, including 2 instructions for each
- substack.
-
-
-
- Forf Tanks provides 10 memory registers (0-9) which persist across
- invocations of your tank's program.
-
-
-
- Additional Procedures
-
-
- - fire-ready?
- - Returns 1 if the tank can fire, 0 if not.
-
- - fire!
- - Fires the cannon.
-
- - l r set-speed!
- - Sets the speed of the left and right treads (range: -100 to
- 100).
-
- - get-turret
- - Returns the current angle of the turret.
-
- - a set-turret!
- - Set the turret to a degrees.
-
- - n sensor?
- - Returns 1 if sensor n is triggered, 0 if not.
-
- - s set-led!
- - Turns off the LED if s is 0, on for any other value.
-
- - n random
- - Returns a random number in the range [0, n). That is, between
- 0 and n-1, inclusive.
-
-
-include(nav.html.inc)
-
-
-
-
diff --git a/docs/procs.md b/docs/procs.md
new file mode 100644
index 0000000..c003cb5
--- /dev/null
+++ b/docs/procs.md
@@ -0,0 +1,47 @@
+# Tanks Procedure Reference
+
+Each tank's program is run once per turn. The data and command
+stacks are reset at the beginning of each turn, but memory is not,
+so you can carry data over in memory registers if you want. See
+the [Forf manual](forf.md) for more information about
+the base language.
+
+For tank specifications (sensor range, maximum speeds, etc.), see
+the [introduction](intro.html).
+
+## Limits
+
+Forf Tanks has a data stack size of 200, and a command stack size
+of 500. This means your program cannot have more than 200 data
+items, or 500 instructions, including 2 instructions for each
+substack.
+
+Forf Tanks provides 10 memory registers (0-9) which persist across
+invocations of your tank's program.
+
+
+## Additional Procedures
+
+fire-ready?
+: Returns 1 if the tank can fire, 0 if not.
+
+fire!
+: Fires the cannon.
+
+l r set-speed!
+: Sets the speed of the left and right treads (range: -100 to 100).
+
+get-turret
+: Returns the current angle of the turret, in degrees.
+
+a set-turret!
+: Begin moving the turret to a degrees.
+
+n sensor?
+: Returns 1 if sensor n is triggered, 0 if not.
+
+s set-led!
+: Turns off the LED if s is 0, on for any other value.
+
+n random
+: Returns a random number in the range [0, n). That is, between 0 and n-1, inclusive.