Skip to content

Commit

Permalink
Amoeba: Fix click handler
Browse files Browse the repository at this point in the history
  • Loading branch information
Perlkonig committed Feb 10, 2025
1 parent 4231a73 commit 3baf4d2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/games/amoeba.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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]}`;
Expand Down

0 comments on commit 3baf4d2

Please sign in to comment.