Game 5 Unit 34 of 128 1 hr learning time
High Score Table
Track and display high scores with name entry for competitive motivation.
27% of Ink War
High scores give players a goal to beat and reason to replay.
Run It
pasmonext --sna inkwar.asm inkwar.sna

Version shows “PHASE 3 V0.2”.
High Score Data Structure
| Field | Size | Purpose |
|---|---|---|
| Name | 3 bytes | Player initials |
| Score | 1 byte | Win margin |
Sorted Insertion
New scores must be inserted in the correct position:
; Compare with existing scores
; Shift lower scores down
; Insert new score
The Complete Code
This code sample could not be loaded. The file may be missing or the path may be incorrect.
What You’ve Learnt
- Score storage - Data structures for leaderboards
- Name entry - Simple letter input interface
- Sorted insertion - Maintaining ordered data
What’s Next
Unit 35 adds pause functionality.
What Changed
Unit 33 → Unit 34