summaryrefslogtreecommitdiff
path: root/src/ui
diff options
context:
space:
mode:
authorsanine <sanine.not@pm.me>2023-11-12 15:18:29 -0600
committersanine <sanine.not@pm.me>2023-11-12 15:18:29 -0600
commit7825b92ce3be95a0ce1dfea9388adbaadce83b1f (patch)
treeeb1e38561e3aba4b890e666e04d46e4de499658e /src/ui
parent95fd952b6d4c496efc0e6236ba2acfcbbeee8ed9 (diff)
fix bugs
Diffstat (limited to 'src/ui')
-rw-r--r--src/ui/index.js5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/ui/index.js b/src/ui/index.js
index b710b48..01068cb 100644
--- a/src/ui/index.js
+++ b/src/ui/index.js
@@ -2,8 +2,11 @@ import { draw } from './canvas.js';
import { create_team, create_epoch, update_epoch } from '../simulation/game.js';
-const start_teams = [...Array(5)].map(x => create_team(8, 50, 50));
+console.log("generating agents...");
+const start_teams = [...Array(4)].map(x => create_team(2, 400, 50));
+console.log("creating epoch...");
let epoch = create_epoch(60, start_teams);
+console.log("ready!");
function draw_cell(ctx, x, y, cell) {