예제 #1
0
        public static DiceRollResult Roll()
        {
            var result = new DiceRollResult();

            result.Die1 = RandomNumberGenerator.Next(1, 7);
            result.Die2 = RandomNumberGenerator.Next(1, 7);
            return(result);
        }
예제 #2
0
 public bool MovePieces(Color color, DiceRollResult diceRollResult)
 {
     return(AreAnyValidMoves(color, diceRollResult));
 }
예제 #3
0
 public void RollDice()
 {
     _currentRollResult = Dice.Roll();
     _rollNumber++;
     _diceRollResults.Add(_currentRollResult);
 }
예제 #4
0
        public bool AreAnyValidMoves(Color color, DiceRollResult diceRollResult)
        {
            var guess = RandomNumberGenerator.Next(2);

            return(guess > 0);
        }