How theplaceoftangerine/ottv2 works
OTTv2 is a local bot competition platform: contestants submit Python/C++ bots, which are validated and exercised in Docker before organizers snapshot eligible bots into seeded scoring rounds, inspect replays and export Elo standings. The graph separates submission handling, game/rules, sandbox execution, operations/scoring and persistent data. README describes several web capabilities, but excerpts do not expose all route-to-service wiring; documented relationships are cited to README and uncertain links are omitted.
Main entry points: app.js HTTP Application · service.js Submission Workflow · match-service.js Practice Matches · match.js Match Runner
Components 18
Bot Submissions
- Submission Workflow
src/submissions/service.js - Source Intake
src/submissions/source.js - Sample Bots
src/sandbox/samples.js
Game and Rules
- Game Engine
src/game/engine.js - Engine Registry
src/game/registry.js - Bot Protocol
src/game/protocol.js - Match Runner
src/game/match.js - Rule Sets
src/rule-sets.js - Live Manual Game
src/legacy.js
Isolated Execution
- Docker Sandbox
src/sandbox/docker.js - Practice Matches
src/sandbox/match-service.js
Tournament Operations
- HTTP Application
src/app.js - Admin Operations
src/admin.js - Accounts
src/users.js - Round Scoring
src/scoring.js
Persistent State
- SQLite Database
src/db.js
Other components
- Contestant
- Organizer
Connections 27
- Contestant → HTTP Application: submits bots
README.md - Organizer → HTTP Application: operates tournament
README.md - HTTP Application → Submission Workflow: routes submissions
src/app.js - HTTP Application → Practice Matches: routes practice
src/app.js - HTTP Application → Round Scoring: routes scoring
src/app.js - HTTP Application → Rule Sets: routes rules
src/app.js - HTTP Application → Admin Operations: uses administration
src/app.js - Submission Workflow → Source Intake: extracts and scans
src/submissions/service.js - Submission Workflow → Docker Sandbox: prepares and tests
src/submissions/service.js - Submission Workflow → Match Runner: runs test matches
src/submissions/service.js - Submission Workflow → Sample Bots: uses sample source
src/submissions/service.js - Practice Matches → Docker Sandbox: runs bot sessions
src/sandbox/match-service.js - Practice Matches → Match Runner: executes matches
src/sandbox/match-service.js - Practice Matches → Rule Sets: selects rule version
src/sandbox/match-service.js - Practice Matches → Sample Bots: offers sample bots
src/sandbox/match-service.js - Round Scoring → Docker Sandbox: runs bot sessions
src/scoring.js - Round Scoring → Match Runner: executes matches
src/scoring.js - Match Runner → Engine Registry: creates engine
src/game/match.js - Engine Registry → Game Engine: instantiates
src/game/registry.js - Match Runner → Bot Protocol: builds and parses turns
src/game/match.js - Docker Sandbox → Bot Protocol: classifies execution faults
src/sandbox/docker.js - Rule Sets → Game Engine: validates rules
src/rule-sets.js - Rule Sets → Engine Registry: registers engines
src/rule-sets.js - HTTP Application → SQLite Database: persists application state
src/app.js - Live Manual Game → SQLite Database: stores live matches
src/db.js - Contestant → Live Manual Game: plays manual game
README.md - Organizer → Round Scoring: creates and monitors rounds
README.md