Skip to content
Spectrum · BASIC · Game 07 BASIC ● 6 of 6 units live

Hi-Lo

Higher or lower? Guess right and your streak grows; guess wrong and it is over. The new tools: AND to judge a guess, and your own card graphics to deal it.

Hi-Lo is the classic higher-or-lower card game. A card is dealt face up; the next sits face down. Will it be higher or lower? Guess right and your streak grows. Guess wrong and it is over — so the longer your streak, the more there is to lose.

ZX Spectrum HI-LO screen: a face-up Ace of diamonds beside a blue face-down card, under a HI-LO status bar
Where you are headed: real playing cards — one face up, the next face down — and a streak to protect.

By now the structure is familiar: RND to deal, INPUT to guess, a streak counter, a rating, a title and a replay loop — all from earlier games. Hi-Lo adds two genuinely new things.

The first is AND. A higher-or-lower guess is only right when two things hold at once — the player said "higher" and the new card is in fact higher. AND lets one IF test both, and an "ok" flag collects the verdict from a short stack of such tests. The second is your own graphics: instead of printing the number 8, you deal the eight of spades — a real card drawn from a custom suit symbol you design yourself and POKE into the Spectrum's character set.

What you will build:

  • The guess — AND to judge it, an ok flag to record it (the new logic)
  • A streak that grows on each hit and ends on a miss — a loop that runs until you are wrong
  • Real cards — a user-defined graphic per suit, drawn by a card subroutine (the new graphics)
  • Feedback — a border flash, a beep, and a colour for a correct call
  • A game-over screen with your streak, your best so far, and a rating — then play again
  • The design concept: press your luck — every hit raises the stakes

6 units. About 5–7 hours. This builds on Meet BASIC — start there if you haven't.

Unit roadmap

Phase 1

The guess

Higher or lower with AND, then a streak to protect

Units 1–2 Complete
Phase 2

The cards

Real card graphics, and feedback that rewards a hit

Units 3–4 Complete
Phase 3

The game

Losing well, a best score, and the title screen

Units 5–6 Complete