The manual bug


next up previous contents
Next: About this document ...
Up: Eden
Previous: The basic actions and objects
Back: to main list of student notes

The manual bug

It's sometimes useful to be able to try out actions manually before building them into your bug brain. You can do this with the ``manual bug''. This has an ``empty'' brain which just reads commands from the keyboard and carries out the appropriate action.

To start it up, get into Prolog, and type

manual( psworld2 ).
Note that you use the command manual, not eps or eden, and that you only give it the name of a world.

When you get the world display, give the control command s, space, and 200, followed as usual by RETURN. You will then get a display inviting you to type one of the letters f, b, l, r, g, d, w, u or q. The first eight are the initial letters of the eight basic bug actions. The final one, q, causes the bug to quit the life, returning to Prolog.

Now you know what the actions do, you can try these out. For example, try picking up the coin and using it in the machine.

You might also like to try the puzzle set by the defaultworld. This is the world with which I introduced Eden in AI and PopBeast. Try

manual( defaultworld ).
and see whether you can get the bug to the food.

If you want to run the manual bug in the same world more than once, you need not type the full command again. As in section 1.7, you can just type

eden.
followed of course by RETURN.


next up previous contents
Next: About this document ...
Up: Eden
Previous: The basic actions and objects
Back: to main list of student notes



Jocelyn Paine
Thu Feb 15 00:11:34 GMT 1996