my bad, sorry mate

test_old_branch
Jérémy Mouyon 11 months ago
parent a7ecb591d3
commit 529ac87dcd

@ -735,7 +735,7 @@ namespace QwirkleClassLibrary.Games
{
List<int> playerTilesBagPos = CheckTilesBag();
if (playerTilesBagPos.Count != 0 && !CheckPlacementPossibilities(playerTilesBagPos) || playerTilesBagPos.Count == 0 && players[GetPlayingPlayerPosition()].Tiles.Count==0)
if (playerTilesBagPos.Count != 0 && !CheckPlacementPossibilities(playerTilesBagPos) || bag!.TilesBag.Count == 0 && players[GetPlayingPlayerPosition()].Tiles.Count==0)
{
OnEndOfGame(new EndOfGameNotifiedEventArgs(player));
GameRunning = false;

@ -205,7 +205,7 @@ static void MenuSwitch(Game game)
enter = 3;
break;
case 3:
WriteLine("Your score on this turn : " + game.GetPlayerScore(game.GetPlayingPlayer(), game.CellsUsed, game.GetBoard()));
WriteLine("Your score on this turn : " + game.GetPlayerScore(game.GetPlayingPlayer(), game.CellsUsed, game.Board));
game.EmptyCellUsed();
game.DrawTiles(game.GetPlayingPlayer());
game.CheckGameOver(game.GetPlayingPlayer());
@ -216,7 +216,7 @@ static void MenuSwitch(Game game)
static void ShowBoard(Game game)
{
Board board = game.GetBoard();
Board board = game.Board;
for (int i = 0; i < board.Rows; i++)
{

Loading…
Cancel
Save