Skip to content

Commit 21374a8

Browse files
committed
Azacru: Another click handler bug
1 parent 0ab0b2f commit 21374a8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/games/azacru.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -367,7 +367,7 @@ export class AzacruGame extends GameBase {
367367
const src = move.substring(move.length - 3, move.length - 1);
368368
// if we clicked the cell again, assume no direction change
369369
if (cell !== undefined && cell === src) {
370-
newmove = move + ".";
370+
newmove = move.substring(0, move.length - 1) + ".";
371371
}
372372
// otherwise, derive facing
373373
else {

0 commit comments

Comments
 (0)