From 22fe18beac4459427c2b40499afafc7c5c868691 Mon Sep 17 00:00:00 2001 From: sanine Date: Sun, 12 Nov 2023 11:48:41 -0600 Subject: fix bug with too many vision outputs --- src/simulation/game.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/simulation/game.js') 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 } }]; }, [] )); -- cgit v1.2.1