Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
39 changes: 39 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
# Python
__pycache__/
*.py[cod]
*$py.class
*.so
.Python
build/
develop-eggs/
dist/
downloads/
eggs/
.eggs/
lib/
lib64/
parts/
sdist/
var/
wheels/
*.egg-info/
.installed.cfg
*.egg

# Jupyter Notebook
.ipynb_checkpoints

# IDEs
.vscode/
.idea/
*.swp
*.swo
*~

# OS
.DS_Store
Thumbs.db

# Temporary files
/tmp/
*.tmp
223 changes: 223 additions & 0 deletions GAME_EXAMPLES.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,223 @@
# Brain Training Game - Visual Showcase

This document shows examples of what each game looks like when playing.

## Main Menu

```
โ•”โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•—
โ•‘ ๐Ÿง  BRAIN TRAINING GAME - Challenge Yourself! ๐Ÿง  โ•‘
โ•šโ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•

โญ Erase Boredom โญ Have Fun โญ Boost Your IQ โญ


๐ŸŽฎ SELECT YOUR GAME:

1. ๐Ÿ”ข Number Memory Challenge
2. ๐Ÿงฎ Math Challenge
3. ๐ŸŽจ Color Pattern Matching
4. ๐Ÿ“ Word Scramble
5. โšก Reaction Time Challenge
6. ๐Ÿšช Exit

Enter your choice (1-6): _
```

## Game 1: Number Memory Challenge ๐Ÿ”ข

**Level 1:**
```
๐Ÿ”ข NUMBER MEMORY CHALLENGE ๐Ÿ”ข
==================================================
Memorize the number sequence and type it back!
The sequence gets longer with each level.

๐Ÿ“Š Level 1 - Memorize this sequence:

3 7 2 9

(Screen clears after 2 seconds)

??????????????????????????????????????????????????
Now type the sequence you just saw!

Your answer: 3729

โœ… CORRECT! +10 points!
๐Ÿ’ฏ Current Score: 10
```

**Level 5 (harder):**
```
๐Ÿ“Š Level 5 - Memorize this sequence:

4 8 1 9 2 7 3

(Screen clears after 4.5 seconds)
```

## Game 2: Math Challenge ๐Ÿงฎ

```
๐Ÿงฎ MATH CHALLENGE ๐Ÿงฎ
==================================================
Solve as many math problems as you can!
You have 30 seconds!

Press Enter to start...

โฐ Time remaining: 28s
What is 7 + 9?
Your answer: 16
โœ… Correct! +10 points

โฐ Time remaining: 25s
What is 15 - 8?
Your answer: 7
โœ… Correct! +10 points

โฐ Time remaining: 23s
What is 6 * 4?
Your answer: 24
โœ… Correct! +10 points

โฐ TIME'S UP!

๐Ÿ† Final Score: 120 points!
๐Ÿ“ Questions Answered: 12
๐ŸŽฏ Accuracy: 100.0%
```

## Game 3: Color Pattern Matching ๐ŸŽจ

```
๐ŸŽจ COLOR PATTERN MATCHING ๐ŸŽจ
==================================================
Watch the color pattern and repeat it!
Colors: R=Red, G=Green, B=Blue, Y=Yellow

๐Ÿ“Š Level 1 - Watch this pattern:
๐Ÿ”ด Red
๐ŸŸข Green
๐Ÿ”ต Blue

(Pattern disappears after showing)

??????????????????????????????????????????????????
Now type the pattern! (e.g., RGBY)
R=Red, G=Green, B=Blue, Y=Yellow

Your answer: RGB

โœ… PERFECT! +15 points!
๐Ÿ’ฏ Current Score: 15
```

## Game 4: Word Scramble ๐Ÿ“

```
๐Ÿ“ WORD SCRAMBLE ๐Ÿ“
==================================================
Unscramble the words as fast as you can!

๐ŸŽฏ Round 1/5
Unscramble this: RNBAI
Your answer: BRAIN
โœ… CORRECT! +48 points (faster = more points)
๐Ÿ’ฏ Current Score: 48

๐ŸŽฏ Round 2/5
Unscramble this: PHYTON
Your answer: PYTHON
โœ… CORRECT! +45 points
๐Ÿ’ฏ Current Score: 93

๐ŸŽฏ Round 3/5
Unscramble this: LZZUEP
Your answer: PUZZLE
โœ… CORRECT! +47 points
๐Ÿ’ฏ Current Score: 140

...

๐Ÿ† Final Score: 227 points!
๐ŸŽ“ That's 90.8% of maximum possible!
```

## Game 5: Reaction Time Challenge โšก

```
โšก REACTION TIME CHALLENGE โšก
==================================================
Press Enter as FAST as you can when you see GO!
But be careful - don't press too early!

Press Enter when ready...

๐ŸŽฏ Round 1/3
Get ready...

๐ŸŸข GO! Press Enter NOW!
โฑ๏ธ Your time: 0.287 seconds
๐Ÿš€ Lightning fast!

๐ŸŽฏ Round 2/3
Get ready...

๐ŸŸข GO! Press Enter NOW!
โฑ๏ธ Your time: 0.312 seconds
โšก Very quick!

๐ŸŽฏ Round 3/3
Get ready...

๐ŸŸข GO! Press Enter NOW!
โฑ๏ธ Your time: 0.295 seconds
๐Ÿš€ Lightning fast!

๐Ÿ“Š Average Reaction Time: 0.298 seconds
๐Ÿ† AMAZING! You have superhuman reflexes!
```

## Game Over Screen

```
Thanks for playing!
Keep your brain sharp! ๐Ÿง 

You completed:
โœ“ Number Memory Challenge
โœ“ Math Challenge
โœ“ Color Pattern Matching
โœ“ Word Scramble
โœ“ Reaction Time Challenge

Come back anytime to challenge yourself!
```

---

## Features Highlighted in Examples

- **Colorful UI**: Uses emojis and visual elements
- **Clear Instructions**: Each game explains how to play
- **Immediate Feedback**: Shows if answers are correct/wrong
- **Progress Tracking**: Displays current score and level
- **Encouraging Messages**: Positive reinforcement throughout
- **Progressive Difficulty**: Games get harder as you advance
- **Time Pressure**: Some games have time limits for excitement
- **Variety**: Different types of cognitive challenges

## Why It's Fun and Engaging

1. **Multiple game modes** prevent monotony
2. **Scoring system** creates motivation to improve
3. **Visual feedback** makes it satisfying to play
4. **Progressive difficulty** keeps it challenging
5. **Quick rounds** allow for short play sessions
6. **No installation** - just run and play!
7. **Shareable scores** - compete with friends
8. **Instant gratification** - immediate results

Perfect for erasing boredom and keeping your mind sharp! ๐Ÿง โœจ
114 changes: 114 additions & 0 deletions GAME_GUIDE.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,114 @@
# Brain Training Game - Quick Start Guide

## ๐ŸŽฎ How to Play

### Starting the Game

```bash
python brain_training_game.py
```

or

```bash
python3 brain_training_game.py
```

## ๐ŸŽฏ Game Modes

### 1. Number Memory Challenge ๐Ÿ”ข
- **Goal**: Memorize and repeat number sequences
- **How to Play**:
1. Watch the number sequence displayed on screen
2. Wait for the screen to clear
3. Type the numbers you remember (with or without spaces)
4. Press Enter to submit
- **Scoring**: 10 ร— level points per correct answer
- **Tips**: Focus on grouping numbers (e.g., 3792 as "37" and "92")

### 2. Math Challenge ๐Ÿงฎ
- **Goal**: Solve as many math problems as possible in 30 seconds
- **How to Play**:
1. Press Enter to start the timer
2. Solve each problem and enter your answer
3. Press Enter to submit
4. Continue until time runs out
- **Scoring**: 10 points per correct answer
- **Tips**: Speed matters! Don't overthink simple problems

### 3. Color Pattern Matching ๐ŸŽจ
- **Goal**: Remember and repeat color sequences
- **How to Play**:
1. Watch the color pattern displayed
2. Remember the order (R, G, B, Y)
3. Type the pattern when prompted
4. Press Enter to submit
- **Scoring**: 15 ร— level points per correct pattern
- **Tips**: Create a story or phrase to remember the colors

### 4. Word Scramble ๐Ÿ“
- **Goal**: Unscramble 5 words as quickly as possible
- **How to Play**:
1. Look at the scrambled word
2. Type the unscrambled word
3. Press Enter to submit
- **Scoring**: 50 points maximum per word, reduced by time taken
- **Tips**: Look for common letter combinations (TH, ER, ING)

### 5. Reaction Time Challenge โšก
- **Goal**: Test your reflexes by pressing Enter quickly when prompted
- **How to Play**:
1. Wait for "GO!" to appear
2. Press Enter as fast as you can
3. Complete 3 rounds
- **Scoring**: Based on average reaction time
- < 0.3s: Lightning fast! ๐Ÿš€
- < 0.5s: Very quick! โšก
- < 0.7s: Good reflexes! ๐Ÿ‘
- **Tips**: Stay focused and don't press too early!

## ๐Ÿ† Scoring System

Each game has its own scoring mechanism:
- **Number Memory**: Score increases with level difficulty
- **Math Challenge**: Fixed 10 points per correct answer
- **Pattern Matching**: Score increases with pattern length
- **Word Scramble**: Bonus points for speed
- **Reaction Time**: Measured in seconds (lower is better)

## ๐Ÿ’ก Training Tips

1. **Practice Regularly**: Play at least once a day to see improvement
2. **Start Easy**: Begin with games you find easier and work up to harder ones
3. **Track Progress**: Note your scores and try to beat them
4. **Stay Focused**: Minimize distractions while playing
5. **Take Breaks**: Rest between intense sessions
6. **Mix It Up**: Rotate between different games for balanced brain training

## ๐ŸŽ“ Cognitive Benefits

- **Memory**: Number and pattern games strengthen recall
- **Speed**: Math and reaction games improve processing speed
- **Attention**: All games enhance focus and concentration
- **Problem Solving**: Word scramble develops analytical thinking
- **Mental Flexibility**: Switching between games improves adaptability

## ๐Ÿ› Troubleshooting

### Game doesn't start
- Make sure Python 3.6+ is installed: `python3 --version`
- Try running with: `python3 brain_training_game.py`

### Display issues
- Ensure your terminal supports UTF-8 encoding
- Try maximizing your terminal window for best experience

### Input not recognized
- Make sure to press Enter after typing your answer
- Check that you're using the correct format (numbers, letters, etc.)

## ๐ŸŽ‰ Have Fun!

Remember, the goal is to have fun while improving your cognitive skills. Don't stress about scores - improvement comes with practice!

Enjoy your brain training session! ๐Ÿง โœจ
Loading