How nhan2892005/gamebot-codingame works
This repository contains three independent game-playing programs: a Ghost in the Cell strategy bot, a Mad Pod Racing bot, and a Tic-Tac-Toe bot. Each reads a game-engine turn, selects actions using game-specific state and strategy, and emits a response. The Ghost bot also models factories, troops, orders, and turn simulation; the other two use checkpoint-based driving logic and board-search logic, respectively. Source excerpts are partial and the READMEs provide no usable architecture detail, so unsampled connections are omitted.
Main entry points: Player.java Player Loop · game.py Game Turn Loop · main.cpp Game Loop
Components 19
Ghost Strategy
- Game Turn Loop
GhostInCell/game.py - Game State
GhostInCell/game.py - Factory Model
GhostInCell/game.py - Troop Model
GhostInCell/game.py - Order Strategy
GhostInCell/game.py - Turn Simulation
GhostInCell/game.py - Order Output
GhostInCell/game.py
Pod Racing
- Player Loop
MadPodRace/Player.java - Checkpoint Tracker
MadPodRace/Player.java - Shield Check
MadPodRace/Player.java - Driving Action
MadPodRace/Player.java
Tic-Tac-Toe
- Game Loop
Tic-Tac-Toe/main.cpp - Board State
Tic-Tac-Toe/main.cpp - Move Generation
Tic-Tac-Toe/main.cpp - Alpha-Beta Search
Tic-Tac-Toe/main.cpp - Position Scoring
Tic-Tac-Toe/main.cpp
Other components
- Game Engine
- Game Engine
- Game Engine
Connections 21
- Game Engine → Game Turn Loop: sends turn
GhostInCell/game.py - Game Turn Loop → Game State: updates state
GhostInCell/game.py - Game Turn Loop → Order Strategy: selects orders
GhostInCell/game.py - Order Strategy → Factory Model: reads factory data
GhostInCell/game.py - Order Strategy → Turn Simulation: simulates turn
GhostInCell/game.py - Turn Simulation → Factory Model: resolves battles
GhostInCell/game.py - Turn Simulation → Troop Model: tracks troops
GhostInCell/game.py - Game Turn Loop → Order Output: prints orders
GhostInCell/game.py - Game Engine → Player Loop: sends turn
MadPodRace/Player.java - Player Loop → Checkpoint Tracker: tracks checkpoints
MadPodRace/Player.java - Player Loop → Shield Check: checks collision
MadPodRace/Player.java - Player Loop → Checkpoint Tracker: checks boost
MadPodRace/Player.java - Player Loop → Driving Action: chooses action
MadPodRace/Player.java - Player Loop → Game Engine: prints command
MadPodRace/Player.java - Game Engine → Game Loop: sends turn
Tic-Tac-Toe/main.cpp - Game Loop → Board State: updates board
Tic-Tac-Toe/main.cpp - Game Loop → Alpha-Beta Search: requests move
Tic-Tac-Toe/main.cpp - Alpha-Beta Search → Move Generation: generates moves
Tic-Tac-Toe/main.cpp - Alpha-Beta Search → Board State: plays moves
Tic-Tac-Toe/main.cpp - Alpha-Beta Search → Position Scoring: scores positions
Tic-Tac-Toe/main.cpp - Game Loop → Game Engine: prints move
Tic-Tac-Toe/main.cpp