From 7caa4db12081cac6062cb78563e9a305223aa269 Mon Sep 17 00:00:00 2001
From: TiynGER <kantemarten@googlemail.com>
Date: Tue, 15 Dec 2020 18:09:27 +0100
Subject: [PATCH] game bugfix: game isnt stopped after stalemate

---
 game.nim | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/game.nim b/game.nim
index 5cce581..2e1656f 100644
--- a/game.nim
+++ b/game.nim
@@ -6,7 +6,7 @@ import ./chess
 proc runGame(): void =
   var game = initGame()
   game.echoBoard(game.toMove)
-  while not game.isCheckmate(game.toMove):
+  while not game.isCheckmate(game.toMove) and not game.isStalemate(game.toMove):
     echo "Make a move"
     echo game.toMove
     var move = readLine(stdin)