Session
The layer above the game.
Game.step never learns that any of this exists. This module drives it -- once per real
player, or once for the attract-mode bot -- and owns everything a single game does not:
screens, player count, whose turn it is.
Definitions
What the HUD needs to know about the other player.
The cabinet draws its own endings, so View must not draw one too.
Initializes a fresh cabinet session with default scores and seed.
The next player still in the game, starting after current and wrapping.
Returns None when nobody is left, which is what ends the session.
The world the player is looking at.
The demo only behind the title. Behind the initials prompt it is the game that just ended, which is the whole point of that screen -- showing the attract game there put the demo's score in the HUD beside a banner announcing the player's, so the two blurred into one game with two scores.
How many players the keypress asks for, if it asks for a game at all.
Advances the cabinet session by one tick given user input.
One tick of the cabinet.
Whether the telemetry overlay is up.
F3, following the convention every game that has one of these uses. It is cabinet state
rather than game state: it survives a game ending, and turning it on must not change
what the game does -- TestSession holds it to that.
A cabinet that already knows some high scores -- what main builds after reading them
from disk.
The same, with the demo player's numbers supplied.
The cabinet carries them rather than Demo owning them as constants, so a tuning read
from a file reaches the attract screen without anything below here knowing where it
came from.