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