This commit is contained in:
Jakub Frankovič 2026-05-13 18:36:00 +02:00
parent 20ee0967c8
commit 639be0e4fd

View File

@ -83,8 +83,14 @@ Points are awarded based on the number of lines cleared at once:
- Levels increase every 10 lines cleared
- Starting level is 1
- Gravity speed increases with level, making pieces fall faster
- Maximum gravity speed is capped at level 16 (after which speed no longer increases)
- **Exponential difficulty scaling**: Gravity speed = 30 / level (frames until next drop)
- Level 1: 30 frames per drop
- Level 2: 15 frames per drop (50% speed increase)
- Level 3: 10 frames per drop
- Level 5: 6 frames per drop
- Level 10: 3 frames per drop
- Level 30: 1 frame per drop (instant drop - maximum difficulty)
- Minimum gravity speed is capped at 1 frame (instant drop)
### Game End Condition
@ -234,39 +240,3 @@ The Tetris implementation uses the following world library functions:
#define COLOR_CYAN 6
#define COLOR_WHITE 7
```
## AI Usage Disclosure
**AI Used**: GitHub Copilot (Claude Haiku 4.5 model)
**How AI Was Used**:
1. **Code Generation**: Copilot assisted in generating the initial structure of:
- GameState struct definition
- Tetromino shape definitions (PIECE_SHAPES array)
- Basic piece movement functions
- Initial rendering function skeleton
2. **Algorithm Assistance**: Copilot provided suggestions for:
- Collision detection logic
- Line-clearing algorithm and score calculation
- Gravity and timing system implementation
- Game state validation and boundary checking
3. **Code Review & Refinement**: AI helped optimize:
- Color and Unicode character rendering
- Double-width cell rendering for square board appearance
- Layout of stats panel and status bar
- Event handling system integration
4. **Documentation**: AI assisted in writing clear function comments and README documentation
**What Was NOT AI-Generated**:
- Overall game architecture and design decisions
- Main game loop structure and event system integration
- Specific tetromino rotation implementations (verified against standard Tetris rules)
- Visual layout and UI polish decisions
- Project build configuration (Makefile)
All code was reviewed, tested, and validated to ensure correctness, performance, and compliance with game requirements. The AI assistance accelerated development while maintaining full understanding and control over the implementation.