// the find
luin/CodeGame
🎮 JavaScript AI tank game
A multiplayer tank battle game where players submit JavaScript AI scripts that control tanks on a shared server. Think coding competition meets game — you write the bot logic, the server runs matches and tracks rankings. Chinese documentation only.
- The sandboxed execution model for player code is the right approach — player scripts run in a separate sandbox directory isolated from game internals
- Replay system is built in from the start, which matters for debugging why your bot died
- GitHub OAuth for auth keeps user management trivial for a side-project competition server
- The architecture is simple enough that forking and running your own tournament instance is realistic
- Abandoned since 2020, targeting Node v0.11.12 (released 2014) — this will not run on any modern Node without substantial effort
- Documentation is entirely in Chinese with no English translation, which cuts off most of the potential audience
- Requires MySQL + Redis for what is essentially a toy game server — the operational overhead is disproportionate to the use case
- No tests anywhere in the codebase; the game logic in sandbox/ is completely untested, so edge cases in the physics/collision code are just lurking bugs