From 4bef870bd6e861478195e7b7994dfc082edb9812 Mon Sep 17 00:00:00 2001 From: "jeremy.mouyon" Date: Sat, 8 Jun 2024 21:47:09 +0200 Subject: [PATCH] trad + new message / delete message --- Qwirkle/QwirkleViews/Pages/GameBoard.xaml.cs | 6 ++++-- Qwirkle/QwirkleViews/Pages/Gameboard.xaml | 2 +- Qwirkle/QwirkleViews/Properties/launchSettings.json | 2 +- Qwirkle/QwirkleViews/QwirkleViews.csproj | 3 +++ 4 files changed, 9 insertions(+), 4 deletions(-) diff --git a/Qwirkle/QwirkleViews/Pages/GameBoard.xaml.cs b/Qwirkle/QwirkleViews/Pages/GameBoard.xaml.cs index af80d46..cae0637 100644 --- a/Qwirkle/QwirkleViews/Pages/GameBoard.xaml.cs +++ b/Qwirkle/QwirkleViews/Pages/GameBoard.xaml.cs @@ -109,8 +109,6 @@ public partial class Gameboard : ContentPage { var x = game.GetPlayerScore(game.GetPlayingPlayer(), game.CellsUsed, game.GetBoard()!); - DisplayAlert("TEMP ALERT FOR DEBUG", game.GetPlayingPlayer().ToString() + " win : " + x, "Copy !"); - game.EmptyCellUsed(); game.DrawTiles(game.GetPlayingPlayer()); } @@ -203,6 +201,10 @@ public partial class Gameboard : ContentPage { _ = AnswerSwap(); } + else + { + DisplayAlert("Swap system", "You cannot place tiles and swap in the same turn.", "Ok !"); + } game.PlaceTileNotified -= Game_PlaceTileNotified; } diff --git a/Qwirkle/QwirkleViews/Pages/Gameboard.xaml b/Qwirkle/QwirkleViews/Pages/Gameboard.xaml index d3627eb..635d237 100644 --- a/Qwirkle/QwirkleViews/Pages/Gameboard.xaml +++ b/Qwirkle/QwirkleViews/Pages/Gameboard.xaml @@ -36,7 +36,7 @@ DropCommand="{Binding OnDropB, Source={x:Reference root}}" /> + ToolTipProperties.Text="To use me, you need to click the swap button first ^^"> diff --git a/Qwirkle/QwirkleViews/Properties/launchSettings.json b/Qwirkle/QwirkleViews/Properties/launchSettings.json index edf8aad..4f85793 100644 --- a/Qwirkle/QwirkleViews/Properties/launchSettings.json +++ b/Qwirkle/QwirkleViews/Properties/launchSettings.json @@ -1,7 +1,7 @@ { "profiles": { "Windows Machine": { - "commandName": "MsixPackage", + "commandName": "Project", "nativeDebugging": false } } diff --git a/Qwirkle/QwirkleViews/QwirkleViews.csproj b/Qwirkle/QwirkleViews/QwirkleViews.csproj index 3f682eb..d06d5e1 100644 --- a/Qwirkle/QwirkleViews/QwirkleViews.csproj +++ b/Qwirkle/QwirkleViews/QwirkleViews.csproj @@ -29,6 +29,9 @@ 1.0 1 + None + + 11.0 13.1 21.0