diff options
| author | Zoltan Szabatin <[email protected]> | 2025-03-02 18:38:27 -0800 |
|---|---|---|
| committer | Zoltan Szabatin <[email protected]> | 2025-03-02 18:38:29 -0800 |
| commit | 225f4a227013443b09a205cabe73886facab4d2b (patch) | |
| tree | 939ef33031bb2c31cfc3eec96fbc7982ce585784 /src/splitscreen_duo/game.py | |
| parent | refactor: Move games to proper game enumeration (diff) | |
| download | splitscreen-duo-225f4a227013443b09a205cabe73886facab4d2b.tar.xz splitscreen-duo-225f4a227013443b09a205cabe73886facab4d2b.zip | |
feat: Add snake and benchmark games
Diffstat (limited to 'src/splitscreen_duo/game.py')
| -rw-r--r-- | src/splitscreen_duo/game.py | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/src/splitscreen_duo/game.py b/src/splitscreen_duo/game.py new file mode 100644 index 0000000..4c5ea45 --- /dev/null +++ b/src/splitscreen_duo/game.py @@ -0,0 +1,16 @@ +from enum import Enum + + +class Game(Enum): + BREAKOUT = "Breakout" + PONG = "Pong v.s. Computer" + SNAKE = "Snake" + BENCHMARK = "Benchmark" + + def all(): + return [ + Game.BREAKOUT.value, + Game.PONG.value, + Game.SNAKE.value, + Game.BENCHMARK.value, + ] |