Gameplay State Machine
Our top level state machine handles overall gameplay. The state machine starts as soon as the TRACTOR is powered on and ends as soon as the SPUD receives notice that permits have expired.
It also handles the lighting of the LEDs. The color red signifies team CKH and blue signifies team GHI. The LEDs blink until permits are issued, and then remain solid throughout gameplay. Once the game has ended, the LEDs flash purple.
It also handles the lighting of the LEDs. The color red signifies team CKH and blue signifies team GHI. The LEDs blink until permits are issued, and then remain solid throughout gameplay. Once the game has ended, the LEDs flash purple.
Pseudocode
GameplayHSM.c
GameplayHSM.h