A fun, emoji-based treasure hunt game played in the command line. The goal is to find the hidden treasure (π€΄) on a 3x3 grid within three guesses. Can you find it before you run out of chances?
- A 3x3 grid represented by emojis.
- The treasure's location is randomized for every new game.
- Users get three chances to guess the correct coordinates.
- Visual feedback for incorrect guesses (π).
- Make sure you have Python 3 installed.
- Clone or download this repository to your computer.
- Open your terminal or command prompt and navigate to the project directory.
- Run the script using the following command:
python treasure_hunt.py
- When prompted, enter your guess as a two-digit number representing the row and column (e.g.,
23for row 2, column 3).
Here is an example of a game session: ['π', 'π', 'π'] ['π', 'π', 'π'] ['π', 'π', 'π']
Enter 1st choice: 11 ['π', 'π', 'π'] ['π', 'π', 'π'] ['π', 'π', 'π']
Enter 2nd choice: 23 ['π', 'π', 'π'] ['π', 'π', 'π'] ['π', 'π', 'π']
Enter 3rd choice: 32 You! won ['π', 'π', 'π'] ['π', 'π', 'π'] ['π', 'π€΄', 'π']