How pacutacatete100/connect5botvbot works
This is a Connect Five game with reusable board rules, human-facing command-line and Tkinter interfaces, heuristic bots, and a separate Pygame bot-versus-bot/simulation environment. In the main play flow, a player supplies a move through a controller or GUI, the game validates it and checks for a result, and an optional bot selects moves and receives move updates. Game states can be serialized, with GameIO providing line-based file persistence. The README is empty; connections for the simulation and training-oriented environment reflect their source implementations.
Main entry points: GameBot.py Heuristic Bot · GameController.py CLI Controller · Game.py Board And Rules · GameGUI.py Tkinter GUI
Components 10
Play Interfaces
- CLI Controller
GameController.py - Tkinter GUI
GameGUI.py - Examples And Imports
main.py
Game Rules
- Board And Rules
Game.py
Bots And Simulation
- Heuristic Bot
GameBot.py - Bot Simulation
BotvBot.py - Training Environment
agent.py
Saved Games
- Game File I/O
GameIO.py - Saved Game Records
GameData.txt
Other components
- Player
Connections 13
- Player → CLI Controller: enters moves
GameController.py - CLI Controller → Board And Rules: places moves
GameController.py - CLI Controller → Heuristic Bot: requests moves
GameController.py - Player → Tkinter GUI: clicks board
GameGUI.py - Tkinter GUI → Board And Rules: places moves
GameGUI.py - Tkinter GUI → Heuristic Bot: requests moves
GameGUI.py - Heuristic Bot → Board And Rules: reads board
GameBot.py - Bot Simulation → Heuristic Bot: requests moves
BotvBot.py - Bot Simulation → Heuristic Bot: updates moves
BotvBot.py - Training Environment → Board And Rules: implements rules
agent.py - Game File I/O → Saved Game Records: reads and writes
GameIO.py - Examples And Imports → CLI Controller: imports controller
main.py - Examples And Imports → Game File I/O: imports I/O
main.py