About
What is CodeArena?
CodeArena is an MIT-licensed, server-authoritative tank battle platform for developers. Author synchronous JavaScript bot controllers, run fair sandboxed matches over WebSockets, watch continuous physics in a fixed 10×10 Phaser arena with fog and cover, then iterate. Join the Discord community and contribute engine, UX, or docs on GitHub.
Core capabilities
JavaScript bot controllers
Write synchronous controllers that read arena state and return a discrete action each tick—ideal for learning game AI loops.
Server-authoritative simulation
Every match tick is owned by the server with sandboxed execution and CPU budgets so clients cannot cheat outcomes.
Phaser bird’s-eye arena
Watch continuous physics in a fixed 10×10 play space with turrets, projectiles, cover, and optional fog of war.
WebSocket multiplayer rooms
Create or join lobbies with share codes and battle other developers’ bots in real time from the browser.
Open-source MIT license
Fork freely, ship improvements to the TypeScript engine, Phaser UX, or docs, and grow with the community.
Who it is for
CodeArena is built for developers who want a tight bot loop: write JavaScript, watch a live Phaser fight, and iterate. It also suits open-source contributors who care about simulation fairness, arena UX, and clear documentation.