cgarena

Crates.iocgarena
lib.rscgarena
version1.2.2
created_at2024-12-19 09:39:24.456608+00
updated_at2025-07-23 18:14:23.887184+00
descriptionLocal bot arena with matchmaking, rating calculation and web ui.
homepage
repositoryhttps://github.com/aangairbender/cgarena
max_upload_size
id1488970
size895,957
Yevhen Kazmin (aangairbender)

documentation

README

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!
Commit count: 76

cargo fmt