예제 #1
0
        public bool CanMove(int FromCell, int CountOfStoneMove)
        {
            var valid = false;

            if (_dices.IsDicesRolled() && _dices.IsOnDice(CountOfStoneMove) &&
                _board.CanMoveGameStone(FromCell, CountOfStoneMove) && _board.GetStone(FromCell).Color == _player)
            {
                valid = true;
            }
            return(valid);
        }
예제 #2
0
 public bool IsOnDice(int Number) => _dice.IsOnDice(Number);