diff options
Diffstat (limited to 'src/simulation/trial.js')
-rw-r--r-- | src/simulation/trial.js | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/src/simulation/trial.js b/src/simulation/trial.js new file mode 100644 index 0000000..3dedf01 --- /dev/null +++ b/src/simulation/trial.js @@ -0,0 +1,12 @@ +'use strict'; + +import { create_team, create_epoch, update_epoch } from './game.js'; + +const start_teams = [...Array(50)].map(x => create_team(32, 5, 5)); + +let epoch = create_epoch(start_teams); + +while (epoch.epoch < 1) { + console.log('update'); + epoch = update_epoch(epoch); +} |