Treasure hunt
You are to create a treasure hunt game which is have a 12×12 numbered grid displayed on screen. The computer will pick a random square and hide treasure in it (this will not be shown to the user).
When the user makes a guess the computer will either say that they were correct OR say how many squares away the treasure is. This is done by counting the number of squares vertically and adding them to the number of squares horizontally. This number will be displayed in the grid.
The game is over after 5 guesses. The user will then have the option to restart the game or quit.

You need to log in or create an account to submit code!











