public void PutCardOnBoard(TTCard card, int indexOfRow, int indexOfColumn) { board.PutCard(card, indexOfRow, indexOfColumn); players[card.belongPlayerId].RemoveCard(card); if (board.IsBoardFull()) { ChangeState(GameState.End); _presenter.UpdateResult(); } else { TurnToNextPlayer(); } _presenter.UpdateAllPlayUI(); }
public void RemoveCard(TTCard card) { int removeIndex = handCard.IndexOf(card); handCard[removeIndex] = null; }
public void PutCard(TTCard card, int indexOfRow, int indexOfColumn) { _gameModel.PutCardOnBoard(card, indexOfRow, indexOfColumn); }