Skip to content

Latest commit

 

History

History
46 lines (28 loc) · 1.82 KB

README.md

File metadata and controls

46 lines (28 loc) · 1.82 KB

Animal Guessing Game

This is a simple Python program that allows you to play a guessing game where you have to guess an animal's name based on the starting letter and gradually revealed characters. The game randomly selects an animal from three categories: water, wild, and sky. You have three attempts to guess the correct animal.

Getting Started

To play the game, you'll need to have Python installed on your computer.

  1. Clone or download this repository to your local machine.
  2. Open a terminal or command prompt and navigate to the project folder.
  3. Run the script by entering the following command:

How to Play

  1. The game will display a random animal's starting letter followed by asterisks to hide the rest of the letters.
  2. You have three attempts to guess the correct animal by entering its name. The input is case insensitive.
  3. After each incorrect guess, the game will reveal one additional letter of the animal's name.
  4. If you guess the animal correctly, you win! Otherwise, the correct animal will be revealed.

Categories

The game selects animals from three categories:

  • Water: Animals associated with aquatic environments.
  • Wild: Animals found in the wilderness and natural habitats.
  • Sky: Animals that fly or are commonly found in the sky.

Example

Here's an example of how the game might look:

The animals start with the letter C***** Enter your guess: Cheetah Incorrect guess. The animals start with the letter Ch**** Enter your guess: Chimpanzee Congratulations! You guessed correctly.


Feel free to modify and improve this code as you see fit. Enjoy the game!

Created by: Gmzlov