Minor Project Py
Minor Project Py
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 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:
▪ 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.
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:
• 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:
_____
Guess a letter: a
_____
Guess a letter: e
Guess a letter: p
__e__
...