Colour Flood
A colour memory game — watch the panels flash, then repeat the sequence.

Four coloured panels fill the screen. The Spectrum plays a sequence — one panel lights up bright with a distinct tone, then fades back. Watch, memorise, repeat. Get it right and the sequence grows by one. Get it wrong and it’s game over. How long can you remember?

What You’ll Learn
- FOR/NEXT — loops with a counter, STEP, and counting backwards
- PAPER and BRIGHT — the Spectrum’s colour model, doubling the palette
- GO SUB / RETURN — reusable subroutines for drawing and flashing
- Strings as data — storing a growing sequence in a string
- VAL and STR$ — converting between numbers and string characters
Prerequisites
Complete Game 2: Bomb Defusal first. You’ll need CLS, PRINT AT, INKEY$, PAUSE, and BEEP.
Unit Roadmap
Colour Flood
Build a colour memory game — Simon Says for the Spectrum
Counting
FOR/NEXT counts to 10, backwards, in twos — the formal introduction to loops.
The Colour Palette
A FOR loop cycles through all colours. BRIGHT doubles the palette.
Four Panels
Draw four big coloured panels across the screen — the game board.
Flash and Fade
A subroutine flashes one panel bright with a distinct tone.
Play a Sequence
Store a sequence in a string. A FOR loop reads each character and flashes the matching panel.
Your Turn
The player repeats the sequence with INKEY$. Wrong answer = game over.
Growing Sequences
String concatenation with RND grows the sequence each round.
The Finished Game
Title screen, results with animated score and ratings, the complete game.