How tegetgoofficial-bot/small-game-engine works
This is a terminal arcade launcher: the player enters a name, browses a cyclic game menu, launches a selected game, and returns to the menu when play ends. Main.py owns menu input, resizing, credits, and game dispatch; PythonGames/Games.py supplies Apple Catcher, Snake, and Connect Four, while GameEngine/Engine.py provides shared game-loop and player functionality. The engine excerpt shows JSON-backed player data handling, but does not establish that saved_progress.json is its target, so that relationship is not drawn. The game-module excerpt is partial; documented capabilities are retained without inferring unshown calls.
Main entry points: Games.py Game Catalog · Main.py Menu & Controls · Engine.py Game Runtime
Components 9
Launcher
- Menu & Controls
Main.py
Games
- Game Catalog
PythonGames/Games.py - Apple Catcher
PythonGames/Games.py - Snake
PythonGames/Games.py - Connect Four
PythonGames/Games.py
Game Engine
- Game Runtime
GameEngine/Engine.py - Player Progress
GameEngine/Engine.py
Other components
- Player
- Progress File
saved_progress.json
Connections 8
- Player → Menu & Controls: enters name
Main.py - Menu & Controls → Game Catalog: selects game
Main.py - Menu & Controls → Game Runtime: runs game
Main.py - Game Catalog → Apple Catcher: offers
Main.py - Game Catalog → Snake: offers
Main.py - Game Catalog → Connect Four: offers
Main.py - Game Catalog → Game Runtime: uses engine
PythonGames/Games.py - Player → Player Progress: plays as
README.md