https://www.stat.berkeley.edu/~aldous/Research/Stel_project/stellaris_project.html
Create conda environment and install packages
conda env create -f environment.yml
Activate conda environment
conda activate stellaris_project
- Read and edit the file
makefile
under the triangle folder. - After editing
makefile
, under the triangle directory, typemake
to compile triangle.
cd triangle
make
python generatemap.py
This will create a 1000 random maps.
maps 1200 will have 200 nodes
maps 201400 will have 400 nodes
maps 401600 will have 600 nodes
maps 601800 will have 800 nodes
maps 801~1000 will have 1000 nodes
python game.py
type in the map name
map1
This will create ./maps/map1/game(number)/start.map
and ./maps/map1/game(number)/result.map
start.map
is the map information for the initial state of the game.
result.map
is the map information for when the game ended.
python visualize.py
type in the map directory
./maps/map2/game1
type in the map name
start
python visualize.py
type in the map directory
./maps/map2/game1
type in the map name
result
python statistics.py
This will create statistics for agents on randomly generated 1000 maps.