예제 #1
0
        public bool TryTakeNewCardFor(int player)
        {
            if (_developmentColumn.HasPlaceForCard())
            {
                var card = _todoColumn.ExtractCardFor(player);
                _developmentColumn.AddCard(card);
                return(true);
            }

            return(false);
        }
예제 #2
0
        public bool TryMoveCardOwnedBy(int player)
        {
            if (_testingColumn.HasUnblockedCardOwnedBy(player))
            {
                var card = _testingColumn.ExtractCardOwnedBy(player);
                _doneColumn.AddCard(card);
                return(true);
            }

            if (_developmentColumn.HasUnblockedCardOwnedBy(player) && _testingColumn.HasPlaceForCard())
            {
                var card = _developmentColumn.ExtractCardOwnedBy(player);
                _testingColumn.AddCard(card);
                return(true);
            }



            return(false);
        }