コード例 #1
0
        public bool RollTheDice(Cell tool)
        {
            _dice.RollTheDice();
            bool isPossibleToMakeMove = true;

            if (!IsPossibleToMakeNextMove(tool))
            {
                isPossibleToMakeMove = false;
            }
            else
            {
                if (IsDoubleTurn())
                {
                    AmountOfMovesToPlay = 4;
                }
                else
                {
                    AmountOfMovesToPlay = 2;
                }
            }

            return(isPossibleToMakeMove);
        }