From 93449cba420cdf5abc2300df6142cac579842ae7 Mon Sep 17 00:00:00 2001 From: Didictateur Date: Sun, 30 Mar 2025 11:03:28 +0200 Subject: [PATCH] fixed minor issue --- src/game.ts | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/game.ts b/src/game.ts index 788f58f..d945d52 100644 --- a/src/game.ts +++ b/src/game.ts @@ -229,6 +229,10 @@ export class Game { if (this.turn === 3) { this.turn = 0; this.pick(0); + if (this.hasWin(0)) { + this.end = true; + this.result = 1; + } } else { this.turn++; }