1
0
mirror of https://github.com/tiyn/yeschess.git synced 2026-02-22 10:34:47 +01:00

visibility: use include in tests and only set needed functions as public

This commit is contained in:
TiynGER
2021-05-03 00:15:58 +02:00
parent 10098da82f
commit b3c76fd2c1
5 changed files with 22 additions and 22 deletions

View File

@@ -15,7 +15,7 @@ proc runGameHotseat*(): void =
while not chess.checkedMove(notationToMove(move, chess.toMove)):
move = readLine(stdin)
chess.echoBoard(chess.toMove)
if (chess.isDrawClaimable):
if (chess.isDrawClaimable()):
echo "Do you want to claim a draw? (y/N)"
draw = readLine(stdin)
if (draw == "y"):