From 3baf4d255a202cb9ee16de54e7339bee83212963 Mon Sep 17 00:00:00 2001 From: Aaron Dalton Date: Mon, 10 Feb 2025 14:28:19 -0700 Subject: [PATCH] Amoeba: Fix click handler --- src/games/amoeba.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/games/amoeba.ts b/src/games/amoeba.ts index ce9a1de3..4dd35ad6 100644 --- a/src/games/amoeba.ts +++ b/src/games/amoeba.ts @@ -158,7 +158,7 @@ export class AmoebaGame extends GameBase { newmove = cell; } else { const ray = g.ray(fx, fy, bearing).map(c => g.coords2algebraic(...c)); - if (ray.length - 1 < fstack.length) { + if (ray.length < fstack.length) { newmove = cell; } else { newmove = `${left}>${ray[fstack.length - 1]}`;