Skip to content

Latest commit

Β 

History

3 Commits

Folders and files

NameName
Last commit message
Last commit date
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

πŸ‘‘ Treasure Hunt Game

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?

Features

  • 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 (πŸ’€).

How to Play

  1. Make sure you have Python 3 installed.
  2. Clone or download this repository to your computer.
  3. Open your terminal or command prompt and navigate to the project directory.
  4. Run the script using the following command:
    python treasure_hunt.py
  5. When prompted, enter your guess as a two-digit number representing the row and column (e.g., 23 for row 2, column 3).

Demo

Here is an example of a game session: ['😈', '😈', '😈'] ['😈', '😈', '😈'] ['😈', '😈', '😈']

Enter 1st choice: 11 ['πŸ’€', '😈', '😈'] ['😈', '😈', '😈'] ['😈', '😈', '😈']

Enter 2nd choice: 23 ['πŸ’€', '😈', '😈'] ['😈', '😈', 'πŸ’€'] ['😈', '😈', '😈']

Enter 3rd choice: 32 You! won ['πŸ’€', '😈', '😈'] ['😈', '😈', 'πŸ’€'] ['😈', '🀴', '😈']

About

A simple command-line treasure hunt game where the user gets three chances to find the hidden treasure.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages