From 4cdcbae42015fcbe08437e5516ba845bcc72d9ca Mon Sep 17 00:00:00 2001 From: "jeremy.mouyon" Date: Thu, 16 May 2024 09:37:51 +0200 Subject: [PATCH] hot fix game + remove of consoleapp in solution whithoumaui for sonar --- Qwirkle/QwirkleClassLibrary/Game.cs | 8 +++++++- Qwirkle/QwirkleWithoutMaui.sln | 6 ------ 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/Qwirkle/QwirkleClassLibrary/Game.cs b/Qwirkle/QwirkleClassLibrary/Game.cs index 30dca81..3c29e84 100644 --- a/Qwirkle/QwirkleClassLibrary/Game.cs +++ b/Qwirkle/QwirkleClassLibrary/Game.cs @@ -280,7 +280,13 @@ namespace QwirkleClassLibrary } } - return true; + if (this.PlaceTile(this.GetPlayingPlayer(), tile, x, y)) + { + this.AddCellUsed(this.GetBoard().GetCell(x, y)); + OnPlaceTile(new PlaceTileNotifiedEventArgs(tile, "Tile correctement placé")); + return true; + } + return false; } public bool CheckTilesInLine(List cells, Board b, int x, int y) diff --git a/Qwirkle/QwirkleWithoutMaui.sln b/Qwirkle/QwirkleWithoutMaui.sln index 2edae3e..34cef95 100644 --- a/Qwirkle/QwirkleWithoutMaui.sln +++ b/Qwirkle/QwirkleWithoutMaui.sln @@ -5,8 +5,6 @@ VisualStudioVersion = 17.8.34330.188 MinimumVisualStudioVersion = 10.0.40219.1 Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "QwirkleClassLibrary", "QwirkleClassLibrary\QwirkleClassLibrary.csproj", "{75739BB2-4DF5-4282-A7AF-0092E69DBDEC}" EndProject -Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "QwirkleConsoleApp", "QwirkleConsoleApp\QwirkleConsoleApp.csproj", "{E981D8B4-8768-4055-91DB-0DD3E5FDE29B}" -EndProject Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "TestBase", "TestBase\TestBase.csproj", "{34BF84AE-E69C-497E-AF88-390E70C4D568}" EndProject Global @@ -19,10 +17,6 @@ Global {75739BB2-4DF5-4282-A7AF-0092E69DBDEC}.Debug|Any CPU.Build.0 = Debug|Any CPU {75739BB2-4DF5-4282-A7AF-0092E69DBDEC}.Release|Any CPU.ActiveCfg = Release|Any CPU {75739BB2-4DF5-4282-A7AF-0092E69DBDEC}.Release|Any CPU.Build.0 = Release|Any CPU - {E981D8B4-8768-4055-91DB-0DD3E5FDE29B}.Debug|Any CPU.ActiveCfg = Debug|Any CPU - {E981D8B4-8768-4055-91DB-0DD3E5FDE29B}.Debug|Any CPU.Build.0 = Debug|Any CPU - {E981D8B4-8768-4055-91DB-0DD3E5FDE29B}.Release|Any CPU.ActiveCfg = Release|Any CPU - {E981D8B4-8768-4055-91DB-0DD3E5FDE29B}.Release|Any CPU.Build.0 = Release|Any CPU {34BF84AE-E69C-497E-AF88-390E70C4D568}.Debug|Any CPU.ActiveCfg = Debug|Any CPU {34BF84AE-E69C-497E-AF88-390E70C4D568}.Debug|Any CPU.Build.0 = Debug|Any CPU {34BF84AE-E69C-497E-AF88-390E70C4D568}.Release|Any CPU.ActiveCfg = Release|Any CPU