|
1 | 1 |
|
2 | | -# 🎮 Hangman Game Challenge |
| 2 | +# 📘 Assignment: Games in Python |
3 | 3 |
|
4 | | -Build the classic word-guessing game using Python strings, loops, and user input. |
| 4 | +## 🎯 Objective |
5 | 5 |
|
6 | | -## � What You'll Build |
| 6 | +Build the classic Hangman word-guessing game using Python strings, loops, and user input to practice fundamental programming concepts and game development logic. |
7 | 7 |
|
8 | | -Create a Hangman game where players guess letters to reveal a hidden word before running out of attempts. |
| 8 | +## 📝 Tasks |
9 | 9 |
|
10 | | -**Skills practiced:** String manipulation, loops, conditionals, random selection |
| 10 | +### 🛠️ Create a Hangman Game |
11 | 11 |
|
12 | | -## ✅ Must Have's |
| 12 | +#### Description |
| 13 | +Create a Hangman game where players guess letters to reveal a hidden word before running out of attempts. The game should provide feedback on guesses and track the player's progress. |
13 | 14 |
|
14 | | -Your game must: |
15 | | -- Randomly select words from a predefined list |
16 | | -- Accept letter guesses and show current progress (_ _ _ format) |
17 | | -- Track incorrect guesses remaining |
18 | | -- End when word is guessed or attempts exhausted |
19 | | -- Display win/lose messages |
| 15 | +#### Requirements |
| 16 | +Completed program should: |
| 17 | + |
| 18 | +- Randomly select words from a predefined list of at least 10 words |
| 19 | +- Display the word as underscores initially (e.g., "_ _ _ _ _") |
| 20 | +- Accept single letter guesses from the player |
| 21 | +- Show correct letters in their proper positions when guessed |
| 22 | +- Track and display incorrect guesses and remaining attempts |
| 23 | +- End the game when the word is completely guessed (win) or attempts are exhausted (lose) |
| 24 | +- Display appropriate win/lose messages with the correct word |
| 25 | +- Ask if the player wants to play again |
| 26 | + |
| 27 | +### 🛠️ Add Game Enhancements |
| 28 | + |
| 29 | +#### Description |
| 30 | +Enhance your basic Hangman game with additional features to make it more engaging and user-friendly. |
| 31 | + |
| 32 | +#### Requirements |
| 33 | +Completed program should: |
| 34 | + |
| 35 | +- Validate user input (reject numbers, symbols, and repeated guesses) |
| 36 | +- Display a visual hangman drawing that progresses with wrong guesses |
| 37 | +- Keep track of previously guessed letters |
| 38 | +- Include words of varying difficulty levels |
| 39 | +- Add a scoring system based on word length and remaining attempts |
0 commit comments