#bot #web-ui #codingame

app cgarena

Local bot arena with matchmaking, rating calculation and web ui

7 releases (stable)

1.2.2 Jul 23, 2025
1.2.1 Jul 19, 2025
0.1.1 Dec 19, 2024

#462 in Network programming

Download history 1/week @ 2025-09-30

363 downloads per month

MIT license

600KB
5K SLoC

CG Arena

Local bot arena similar to CodinGame.

screenshot

Features

  • Web UI
  • Add/Delete/Rename bots
  • Matchmaking
  • Rating calculation
    • OpenSkill
    • TrueSkill
    • Elo
  • Realtime leaderboard
  • Analytics
    • Custom leaderboards based on some match criteria (e.g. small maps)
    • Visualize bot data, x-axis for turn, y-axis for your param (e.g. average/min/max money on each turn)
  • Fully local, but you can expose web server to check leaderboard from your phone

Installation

You would need cargo installed. (Here is how to install it).

cargo install cgarena

The same command can be used to update CG Arena to the latest version.

Usage

Please check the full usage documentation here.

You can also check the example setup guide for CodinGame.

Building from source

To build CG Arena from source code run the following (make sure cargo and npm are installed):

git clone https://github.com/aangairbender/cgarena.git
cd cgarena
cargo build --release

You can find the executable in /target/release folder.

Thanks

Thanks to

  • Psyho's psyleague for the idea inspiration!
  • Magus's CG stats for the UI inspiration!
  • CodinGame for such an amazing platform and bot competitions!
  • You for your interest in CG Arena!

Dependencies

~52–71MB
~1M SLoC