diff options
author | sanine <sanine.not@pm.me> | 2023-11-12 05:17:19 -0600 |
---|---|---|
committer | sanine <sanine.not@pm.me> | 2023-11-12 05:17:19 -0600 |
commit | 444b2b5abfbb70473b0785b38eaba1df4197ae69 (patch) | |
tree | 98eeb63082c679f8944c740f466c1e56aef24aad /src/simulation/trial.js | |
parent | e3a042a7a5c041dad63255965576346377e4f823 (diff) |
refactor genome to include size information
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); +} |