This commit is contained in:
Jakub Frankovič 2026-05-13 18:33:07 +02:00
parent 565520913a
commit 20ee0967c8

View File

@ -269,42 +269,4 @@ The Tetris implementation uses the following world library functions:
- 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.
## Grading Checklist
**GameState struct** - Complete state structure with all fields (board, pieces, score, level, etc.)
**Input handler function** - `world_event()` handles all controls (arrows, space, z, p, q, r)
**3+ state-modifying functions**:
1. `lock_piece()` - Locks piece to board and spawns next
2. `check_and_clear_lines()` - Clears lines and updates score/level
3. `spawn_piece()` - Creates new piece and checks game-over
4. `move_piece_left()`, `move_piece_right()`, `rotate_piece()` - Also modify state
**Gravity tick function** - `apply_gravity()` moves pieces down automatically based on level
**Render function** - `render_game()` uses world library only, no direct ncurses calls
**Double-width cells** - Each board cell rendered as 2 characters wide (√ `CELL_WIDTH = 2`)
**Tetromino colors** - Each of 7 pieces has unique color (I:cyan, O:yellow, T:magenta, S:green, Z:red, J:blue, L:orange)
**Unicode characters** - Uses █ (block), ░ (shade), ─ │ ┌ ┐ └ ┘ (borders)
**Split-panel layout** - Left panel (board), right panel (next piece, score, level, lines)
**Makefile** - Compiles with `make`, links ncurses library, works on sigma server
**README.md** - Markdown formatted with all 6 required sections
**world.c and world.h** - Included, unmodified (library was sufficient)
**No direct ncurses calls** - All rendering through world library (`set_color_cell()`, `set_message()`, `clear_screen()`)
**AI disclosure** - Documented in "AI Usage Disclosure" section above
---
*Tetris Implementation Complete - Ready for Deployment*
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.