Skip to content

Commit 0f58719

Browse files
committed
step 2
1 parent b94c4f6 commit 0f58719

2 files changed

Lines changed: 65 additions & 12 deletions

File tree

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
---
2+
applyTo: "assignments/**/*.md"
3+
---
4+
5+
# Assignment Markdown Structure Guidelines
6+
7+
All assignment markdown files should follow these guidelines:
8+
9+
## 1. Template Usage
10+
11+
- Assignment markdown files must follow the structure in [`templates/assignment-template.md`](../../templates/assignment-template.md).
12+
- The assignment must be created as a `README.md` file
13+
- Do not remove or skip required sections from the template.
14+
15+
## 2. Section Guidance
16+
17+
The section headers should reflect the structure in the template, including the exact icon usage.
18+
19+
- **Title**: Replace `[Assignment Title]` with a short, descriptive name (e.g., `Python Basics`, `Loops and Conditionals`, `Functions and Modules`).
20+
- **Objective**: Write 1-2 sentences summarizing what the student will learn or accomplish. Focus on the main skills or concepts.
21+
- **Tasks**: For each task:
22+
- Use a specific, action-oriented task name
23+
- In the Description, clearly state what the student must do.
24+
- In Requirements, use bullet points to list the expected outcomes or features. Be specific and measurable
25+
- Provide example input/output in code blocks if helpful.
26+
27+
Do not include extra sections unless explicitly specified.
Lines changed: 38 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,45 @@
11

2-
# 🎮 Hangman Game Challenge
32

4-
Build the classic word-guessing game using Python strings, loops, and user input.
3+
# 🎮 Assignment: Hangman Game Challenge
54

6-
## � What You'll Build
5+
## 🎯 Objective
76

8-
Create a Hangman game where players guess letters to reveal a hidden word before running out of attempts.
7+
Build a classic Hangman game in Python to practice string manipulation, loops, conditionals, and user input. You will learn how to manage game state and interact with users through the console.
98

10-
**Skills practiced:** String manipulation, loops, conditionals, random selection
9+
## 📝 Tasks
1110

12-
## ✅ Must Have's
11+
### 🛠️ Create the Hangman Game
1312

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
13+
#### Description
14+
Develop a Hangman game where the player tries to guess a hidden word by suggesting letters within a limited number of attempts.
15+
16+
#### Requirements
17+
Completed program should:
18+
19+
- Randomly select a word from a predefined list
20+
- Accept letter guesses from the user and display current progress (e.g., `_ a _ _ m a n`)
21+
- Track and display the number of incorrect guesses remaining
22+
- End the game when the word is fully guessed or attempts run out
23+
- Show a win message if the player guesses the word, or a lose message if they run out of attempts
24+
25+
**Example:**
26+
```python
27+
Word: _ a _ _ m a n
28+
Guesses left: 3
29+
Guess a letter: g
30+
Word: g a _ _ m a n
31+
Guesses left: 3
32+
...
33+
```
34+
35+
### 🛠️ Enhance User Experience
36+
37+
#### Description
38+
Add features to make the game more engaging and user-friendly.
39+
40+
#### Requirements
41+
Completed program should:
42+
43+
- Prevent repeated guesses of the same letter
44+
- Display all guessed letters so far
45+
- Handle invalid input gracefully (e.g., non-letter characters)

0 commit comments

Comments
 (0)