thecodingidiot.com

g01a-the-developer

Who Wants to Be a Game Developer?

FIFTEEN QUESTIONS

September 4, 1998. ITV broadcast the first episode of Who Wants to Be a Millionaire?[1], a quiz show created by David Briggs, Steven Knight, and Mike Whitehill.

Title card for the revived series of the show (20th Anniversary)

The format was built around a single escalating structure: fifteen questions, each harder than the last, a prize ladder from £100 to £1,000,000, two safe levels, and three lifelines — each usable once. Answer wrong and you fall to the last safe level you passed. Answer wrong before question five and you leave with nothing.

By 2000, Eidos Interactive had published Who Wants to Be a Millionaire?[2] for PC. It reconstructed the show's visual language for a home monitor: the prize ladder with the current level highlighted, the question and four lettered options, the audience percentage bar, the phone-a-friend reveal, a win screen that looked nothing like a game over.

Eidos Interactive Logo used for the Millionaire PS1 and PC Games (2000-2003)
Who Wants To Be a Millionaire (1st Edition) (2000) (UK) Windows PC
Who Wants To Be a Millionaire (UK) SONY PlayStation
Who Wants To Be a Millionaire (UK) SEGA Dreamcast
Who Wants to Be a Millionaire (2000) — Studio: question and four options
Who Wants to Be a Millionaire (2000) — Right Answer screen

Your version has to render all of it too. Not with a GPU, not with a 2D engine — with the same mechanism every terminal program uses. Characters written to a display device. A function that formats them and calls write().

You built that function in c02/02. Chapter c03 added the input side: tci_getline reads a file one line at a time and tciu_split parses each line into fields. The prize ladder, the question block, the audience bar chart, the win screen — every visible element of the game is a tci_printf call. The file descriptor is your terminal.

The implementation pages build the game one layer at a time: the data structures, question loading, the display functions, the game loop, and random selection from a larger question bank. Start at Setup.

Implementation

Setup

Begin Implementation
  1. 0Setup
  2. 1The Spec
  3. 2The Question File
  4. 3The Display
  5. 4The Game Loop
  6. 5Random Selection
  7. 6Play It

Footnotes

  1. Who Wants to Be a Millionaire? (British game show) - Wikipedia

  2. Who Wants to Be a Millionaire? (2000 video game) | Millionaire Wiki | Fandom