Skip to content

pxyxyrus/stellaris_project

Repository files navigation

Stellaris Project

https://www.stat.berkeley.edu/~aldous/Research/Stel_project/stellaris_project.html

Requirements

Common

conda conda installation link

Create conda environment and install packages

conda env create -f environment.yml

Activate conda environment

conda activate stellaris_project 

Triangle build

  1. Read and edit the file makefile under the triangle folder.
  2. After editing makefile, under the triangle directory, type make to compile triangle.
cd triangle
make

Basic Scripts

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

Result SampleImage1

python visualize.py
type in the map directory
./maps/map2/game1
type in the map name
result

Result SampleImage2

python statistics.py

This will create statistics for agents on randomly generated 1000 maps.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published