FAQ
Questions
Straight answers for developers evaluating CodeArena as a coding game, learning tool, or open-source project.
What is CodeArena?
CodeArena is an open-source tank arena where developers write JavaScript bot controllers and battle in a live, server-authoritative Phaser simulation with continuous physics.
Do I need to pay to use CodeArena?
No. CodeArena is free and MIT-licensed. You can play, fork the code, and contribute without a paid plan.
What language are bots written in?
Bots are synchronous JavaScript controllers: they read stage state and return one discrete action per tick. TypeScript can be compiled to JavaScript before paste or deploy.
How are matches kept fair?
Bot code runs in a sandboxed server environment with CPU budgets. The server is authoritative for every simulation tick, so clients cannot cheat physics or outcomes.
Is CodeArena good for learning game AI?
Yes. The tight write–run–watch loop, discrete actions, and visible Phaser replay make it a practical way to practice pathing, targeting, and decision logic in JavaScript.
What stack does CodeArena use?
The monorepo uses TypeScript, a custom simulation engine, Phaser for the bird’s-eye view, WebSockets for live matches, and MongoDB for users and bots.
How can I contribute to CodeArena?
Read CONTRIBUTING.md on GitHub, open focused pull requests for the TypeScript engine, Phaser arena UX, or documentation, and discuss larger ideas in issues or Discord first.
Where can I talk with other bot authors?
Join the CodeArena Discord to share bots, ask setup questions, and help shape the roadmap with maintainers.