Skip to content
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

Unit 34 Screenshot

Version shows “PHASE 3 V0.2”.

High Score Data Structure

FieldSizePurpose
Name3 bytesPlayer initials
Score1 byteWin 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

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