Real-World Example: Game Score System

Test yourself on Binary Arithmetic with exam style questions, marked instantly.

Flashcards that come back just before you would forget them.

A revision plan that remembers what you know and shows what to do next.

See which topics you have nailed and which need another look.

Quiz yourself on Binary ArithmeticGet your flashcardsBuild my revision planTrack my progress

Real-World Example: Game Score System

Scenario: Old arcade game uses 8-bit unsigned counter for score.

  • Maximum score: 11111111 = 255
  • Player reaches 255 and scores 1 more point...
  • Addition: 11111111 + 00000001 = 100000000 (9 bits!)
  • Overflow! 9th bit is lost, counter shows 00000000 (score wraps to 0)
  • Famous bug: Pac-Man Level 256 - game tries to draw 256 fruit but overflows, crashes screen

Modern fix: Use 16-bit (0-65,535) or 32-bit (0-4,294,967,295) counters

Make this stick

Signing in gives access to all PrepWise features.

PrepWise is a trading name of A3M Quality Solutions Limited, registered in England and Wales, company number 14959172. Registered office: 202 Stroud Road, Gloucester, GL1 5LA. ICO registration ZC267069.