示例#1
0
        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();
        }
示例#2
0
        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);
 }