Skip to content

Runs a local halite 4 tournament with your agents ranked by trueskill/elo

Notifications You must be signed in to change notification settings

ClementMs/Halite-4-Tournament-Runner

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Halite 4 Tournament Runner

This code allows you to run a local tournament ranking bots you provide by the Trueskill or ELO ranking algorithm (somewhat similar to the current Kaggle leaderboard ranking system)

Ensure you have NodeJS version 12.x or above installed

To run the tournament, fork this repo or clone it to your computer, and first install the Dimensions package

npm install dimensions-ai

then run

node run.js

halite-tourney

to see a live display of a leaderboard of 4 bots. The sample bots used here for demonstration are the swarm bot by Yegor Biryukov: https://www.kaggle.com/yegorbiryukov/halite-swarm-intelligence, the getting started bot provided by Kaggle: https://www.kaggle.com/alexisbcook/getting-started-with-halite, and a bot that does nothing called stillbot.

To add more bots, add them to the list in run.js at line 47. Note that you have to pass in paths to a file (so you can't use the Kaggle given random bot, you will have to copy it over yourself)

To use ELO ranking instead of trueskill (the default), change line 58 in run.js to Tournament.RANK_SYSTEM.ELO

Notes

The file run.sh has the script that is used to run the matches in the tournament

Unfortunately, Windows doesn't work, you will need WSL

About

Runs a local halite 4 tournament with your agents ranked by trueskill/elo

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 88.3%
  • JavaScript 10.6%
  • Shell 1.1%