0% found this document useful (0 votes)
4 views3 pages

Minor Project Py

The Word Guess Game is a Python-based project where players guess a randomly selected word letter by letter within a limited number of attempts. The game provides feedback on each guess, revealing correct letters and tracking remaining attempts, with winning and losing conditions based on successful guessing or exhausting attempts. Optional features include difficulty levels, multiple rounds, and score tracking.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
4 views3 pages

Minor Project Py

The Word Guess Game is a Python-based project where players guess a randomly selected word letter by letter within a limited number of attempts. The game provides feedback on each guess, revealing correct letters and tracking remaining attempts, with winning and losing conditions based on successful guessing or exhausting attempts. Optional features include difficulty levels, multiple rounds, and score tracking.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 3

Project Title: Word Guess Game

Problem Statement:

The objective of this project is to create a Python-based Word Guess Game that
challenges the user to guess a randomly selected word within a certain number of
attempts. The game will feature a word chosen from a predefined list or database, and
the player will be given the opportunity to guess the word one letter at a time. The user
will receive feedback after each guess and can continue guessing until they either
guess the word correctly or run out of attempts.

Requirements:

• Word List: The game will have a predefined list of words (e.g., animals,
countries, objects, etc.), from which a word will be randomly selected at the
start of the game.

• Gameplay:

o The player will be shown a series of underscores (_) representing the


letters of the word.

o The player guesses one letter at a time.

o If the letter is in the word, it will be revealed in its correct position(s).

o If the letter is not in the word, the player will lose an attempt.

o The player will have a limited number of attempts (e.g., 6 wrong guesses)
before losing the game.

• Feedback:

o After each guess, the game should provide feedback:

▪ Whether the guessed letter is correct or incorrect.

▪ The current state of the word (with correctly guessed letters filled
in).

o The game should notify the player if they win (when they guess the word)
or lose (when they run out of attempts).

• User Interface:
o The game will be played in the console, and interactions will occur via
text input/output.

o Display the number of remaining attempts and a list of guessed letters (if
any).

• Winning Condition: The player wins when they successfully guess all the letters
in the word.

• Losing Condition: The player loses when they exhaust all their attempts without
guessing the word.

• Bonus Features (Optional):

o Add difficulty levels (e.g., easy, medium, hard) with varying word lengths
or attempt limits.

o Allow the player to play multiple rounds without restarting the program.

o Track and display the player's score (number of correct guesses) over
multiple rounds.

Technical Requirements:

• The project should be implemented in Python.

• Use functions and modules (e.g., random for word selection, string for
character operations).

• The game should handle user input properly (e.g., validate that only one letter is
guessed at a time).
Example Gameplay:

Welcome to Word Guess Game!

The word has 5 letters.

_____

Guess a letter: a

Incorrect guess! You have 5 attempts left.

_____

Guess a letter: e

Correct guess! The word now looks like: _ _ e _ _

Guess a letter: p

Incorrect guess! You have 4 attempts left.

__e__

...

Congratulations! You guessed the word: apple

You might also like