summaryrefslogtreecommitdiff
path: root/src/simulation/game.js
diff options
context:
space:
mode:
authorsanine <sanine.not@pm.me>2023-11-12 11:48:41 -0600
committersanine <sanine.not@pm.me>2023-11-12 11:48:41 -0600
commit22fe18beac4459427c2b40499afafc7c5c868691 (patch)
tree63acbe33339af6f52501094d6466cb35643d4bfc /src/simulation/game.js
parenta443171f51cf2d3b3a6c8f4e4967a3d19fd111d3 (diff)
fix bug with too many vision outputs
Diffstat (limited to 'src/simulation/game.js')
-rw-r--r--src/simulation/game.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/simulation/game.js b/src/simulation/game.js
index 17b1442..05ac4a1 100644
--- a/src/simulation/game.js
+++ b/src/simulation/game.js
@@ -72,7 +72,7 @@ export function create_world(size, teams) {
))
const [x, y, ..._] = random_choice(available_cells);
const orientation = random_choice([ 'n', 'e', 's', 'w' ]);
- return [...acc, {...agent, x, y, flags: { ...agent.flags, orientation } }];
+ return [...acc, {...agent, x, y, flags: { ...agent.flags, team: team_num, orientation } }];
},
[]
));