Skip to content

Instantly share code, notes, and snippets.

@koo5
Created April 15, 2012 15:35
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save koo5/2393463 to your computer and use it in GitHub Desktop.
Save koo5/2393463 to your computer and use it in GitHub Desktop.
bored dance
"dance of boredom" by kook
"sitting somewhere between pseudocode and real inform7, making inform seem much more likeable than it is, unplugged from the world, this node stares cross-eyed into space"
world is a room.
the table of dance
text
step
"turn left"
"turn right"
"blink a light"
include dynamic objects
a robot is a kind of container
a robot can be bored.
understand hello:
clone new robot
being bored is an action applying to one robot.
understand "i'm bored" as being bored.
carry out being bored:
do a step.
every minute:
do a step.
to do a step:
select row dance_step from the table of dance
increment dance_step
running thru every bored robot:
say step
understand "new step' as adding a new step
adding a new step is an action applying to one indexed text
carry out adding a new step:
select a blank column in the table of dance
let step be the text understood
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment