1. One Above
  2. Box
  3. Three in a Column
  4. Square
  5. ZigZag
  6. ZigZag 2.0
  7. Above and Below
  8. Above and Below 2.0
  9. Three in a Row
  10. Letter L
  11. Two Near Corners
  12. Four Corners
  13. Full House
  14. Three on the Ends
  15. ZigZig Along Wall
  16. Two with Wall
  17. Cross-Hair
  18. L with a Tail
  19. Looks Random
  20. Cross
  21. Three Pockets
  22. Arrow Head
  23. Steps
  24. Sparse W
  25. Cup Above
  26. Controller
  27. 3 Gems Per Corner
  28. Vertical Barrier
  29. In a Room
  30. Spiral
  31. Wings
  32. Across the Top
  33. Hungry Alligator
  34. 3 and 3

Back Show LOAD
if nextNotBug
Load COMMANDS Clear Show

Delete All?



if next

if facing

if moves

if gems

Menu Start Reset Code
Moves: 0      Gems: 0




The purpose of the game is to program the yellow gembug to collect the green gems while avoiding the red walls.
Choose a scenario (One Above, Box,...) on the main menu. The playing field will be displayed. Select the Code button to bring up the coding window. Then choose COMMANDS to show the available commands.  Descriptions of the commands are below.

Tapping on a command will add it to the code window. Once a command is added to the code window, it can be deleted or indented by tapping on the command to bring up another window.

Commands that are to be executed when an "if" or "else" statement is used should be indented.  See below for an example which makes the gembug turn left if there is a wall in front of it; otherwise the gembug will move.

Once the code is complete, press the Load button to load the scenario. Then press the Start button to execute the commands. The commands will be repeatedly executed until all gems are collected or the gembug hits a wall.



Command Description
moveMoves the gembug forward one position.
turn...Turns the gembug left or right relative to itself.
if next... Checks what is in the spot in front of the gembug.
if facing... Checks the direction the gembug is facing.
if moves... Checks how many moves the gembug has taken.
if gems... Checks how many gems the gembug collected.
else Used to execute statement(s) when the if condition is false. Must be used with an if statement.

Custom Scenario

Select the Custom button on the menu screen to design your own world. Click on the symbols at the bottom. Then click on a spot to add or delete the item.


Solutions for some of the problems follow.

1. One Above

5. ZigZag

10. Letter L

15. ZigZag Along Wall

20. Cross

25. Cup Above

30. Spiral