part of Santa's Labyrinth, a #Dungeon32 thing
The #v0 language is intended for novice programmers. With this January 8th release of Adventurebot 3000, more experienced programmers can use a lower-level, but more flexible programming environment, (v1), a variant of the uxntal language and computer.
Here is a sample (v1) program, to solve the room in #5, the claw machine:
(v1)
(every v1 program begins with the line "(v1)",
including parentheses)
~lib/robot.tal
(
the robot.tal library contains routines that
map more-or-less to the #v0 movement
and detection commands; for example
the routine at ;rlib-forward operates much
like the "forward" command in v0.
)
|0100
@loop
JSI ;rlib-forward
JSI ;rlib-right
RLIB-OBJECT-TREASURE JSI ;rlib-look
JCI ,&grab
JSI ;rlib-left
JMI ;loop
&grab
(;rlib-found pushes a true value on to the stack
if the robot and the object share the same tile)
RLIB-OBJECT-TREASURE JSI ;rlib-found
JCI ,&done
JSI ;rlib-forward
JMI ,&grab
&done
BRK
