Cave Explorer

Adriel Luo

In Cave Explorer, the player controls a character whose goal is to find the treasure in the caves, which is hidden in one of five rocks.

The map looks like this (it is a 6 x 5 grid):

However, initially the player can only see the tile he is standing on:

As he explores the caves using the arrow keys, he sees more of the map:

The treasure is located in one of five potential locations. Which of these five locations the treasure is at determined randomly at the start of the game.

When the player is on the tile with a rock, he can press the spacebar to mine the rock:

This will either reveal the treasure, if the player was lucky, or nothing otherwise. The game ends when the player finds the treasure: