How yoshibar-003/code-and-conquer works
Code & Conquer is a Godot programming game: players write C++ or Python robot programs, run or step through them, and see the robot act in a level. The README documents editor, sandboxing, synchronized debugging, level import, camera rotation, and JSON level loading. The tree and excerpts do not expose most Godot script filenames or their calls, so directory paths and README-supported relationships are used for those areas; only the worker’s command handling is sampled.
Main entry points: workstation/scripts Code workstation · map/scripts Isometric simulation · main.cpp Sandbox worker · execution Execution dispatch
Components 19
Workstation
- Code workstation
workstation/scripts - Code editor
workstation/scripts - Step debugger
workstation/scripts - Level editor
level_editor/scripts
Code Runtime
- Execution dispatch
execution - C++ execution
execution/cpp - Python execution
execution/python - Shared execution
execution/shared - Sandbox worker
sandbox_worker/src/main.cpp
Game World
- Isometric simulation
map/scripts - Robot actions and sensors
player/scripts - Rotatable camera
map/scripts
Levels & Assets
- JSON level loading
map/scripts - Campaign solutions
data/campaign_levels/campaign/campaign_solutions_cpp - Main menu
main_menu/scripts - Game assets
assets
Other components
- Player
- GCC compiler
- Python runtime
Connections 22
- Player → Code workstation: writes code
README.md - Code workstation → Code editor: hosts editor
README.md - Player → Code workstation: runs or steps
README.md - Code workstation → Execution dispatch: dispatches code
README.md - Execution dispatch → C++ execution: routes C++
- Execution dispatch → Python execution: routes Python
- C++ execution → Sandbox worker: uses sandbox
- Python execution → Sandbox worker: uses sandbox
- C++ execution → Shared execution: uses shared logic
- Python execution → Shared execution: uses shared logic
- Sandbox worker → GCC compiler: runs compiled code
README.md - Sandbox worker → Python runtime: runs student code
README.md - Code workstation → Step debugger: synchronizes stepping
README.md - Step debugger → Isometric simulation: shows execution
README.md - Isometric simulation → Robot actions and sensors: simulates actions
- Player → Level editor: edits levels
- Level editor → JSON level loading: imports JSON
README.md - JSON level loading → Isometric simulation: loads level
README.md - Player → Rotatable camera: rotates view
README.md - Campaign solutions → Robot actions and sensors: uses robot commands
data/campaign_levels/campaign/campaign_solutions_cpp/15_labyrinth.cpp - Main menu → Isometric simulation: enters game
- Isometric simulation → Game assets: uses visuals