Soccer Referee

Stefan Glaser
2025-05-27T22:05:12Z

Implement a soccer referee responsible for managing the flow of a soccer game.

There exists a `referee()` method in the referee class meant to judge the state of the game after the simulation of a cycle. At the moment this method only ends the game if the game time has exceeded the half time duration.

Some referee decisions should be rather simple to implement, while others involve collision detection, etc. of physical objects.

I expect the referee to become fairly complex over time. Maybe using some kind of state machine approach would simplify future changes / adaptations?