@ -159,14 +170,27 @@ public partial class Gameboard : ContentPage
if(game.CellsUsed.Count==0&&!game.PlayerSwapping)
{
DisplayAlert("Swap system","\r\nWelcome to the swap system! To use the system, take the tiles you wish to swap and place them in the bag (you will not see the tiles disappear). Then, click on the skip button. /!\\ Attention, during the swap phase, you cannot play /!\\","Copy !");
game.PlayerSwapping=true;
//DisplayAlert("Swap system", "\r\nWelcome to the swap system! To use the system, take the tiles you wish to swap and place them in the bag (you will not see the tiles disappear). Then, click on the skip button. /!\\ Attention, during the swap phase, you cannot play /!\\", "Copy !");
AnswerSwap();
}
game.SwapTilesNotified-=Game_SwapTilesNotified;
game.PlaceTileNotified-=Game_PlaceTileNotified;
}
privateasyncvoidAnswerSwap()
{
boolanswer=awaitDisplayAlert("Swap System","Etes vous sur de vouloir swap vos tuiles ? Attention, si vous swapez vous ne pouvez pu jouer","Yes","No");