A Real-Time Strategy Game for AI development that runs through NodeJS.
git clone https://github.com/arnemahl/decnalab.git
npm install
- Run a command
Runs a coveolutionary algorithm to evolve strategies.
The optional parameter lets you provide a name of the experiment. When provided, statistics and found strategies will be stored in dump/<name>
.
Plays a game between two strategies and serves the replay at localhost:3000
The two optional arguments lets you decide which strategies will be used.
- If
<name>
is not provided, randomly generated strategies will be used. - If only
<name>
is provided, and not<name2>
the strategies chosen will be the two first strategies from population indump/<name>/strategies.js
. - If both
<name>
and<name2>
are provided, the strategies chosen will be the first strategy from population indump/<name>/strategies.js
and the first first strategy from population indump/<name2>/strategies.js
.
The way strategeis are chosen can be changed in cli.js, and you if you want you may hard-code which strategies to use in that file, e.g. by copy-pasting the entire strategies into cli.js
.
Run an experiment called "my-experiment". When done, show simulations of games between the two best solutions from the experiment.
npm run evo my-experiment
npm run start my-experiment