From a7ecb591d3eaa7fbd0a216aaec4723501a9c0bb2 Mon Sep 17 00:00:00 2001 From: "jeremy.mouyon" Date: Sat, 25 May 2024 17:17:20 +0200 Subject: [PATCH] ok, my bad, hoy fix --- Qwirkle/QwirkleClassLibrary/Games/Game.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Qwirkle/QwirkleClassLibrary/Games/Game.cs b/Qwirkle/QwirkleClassLibrary/Games/Game.cs index 9c85287..23464c5 100644 --- a/Qwirkle/QwirkleClassLibrary/Games/Game.cs +++ b/Qwirkle/QwirkleClassLibrary/Games/Game.cs @@ -735,7 +735,7 @@ namespace QwirkleClassLibrary.Games { List playerTilesBagPos = CheckTilesBag(); - if (playerTilesBagPos.Count != 0 && !CheckPlacementPossibilities(playerTilesBagPos)) + if (playerTilesBagPos.Count != 0 && !CheckPlacementPossibilities(playerTilesBagPos) || playerTilesBagPos.Count == 0 && players[GetPlayingPlayerPosition()].Tiles.Count==0) { OnEndOfGame(new EndOfGameNotifiedEventArgs(player)); GameRunning = false;