private void RollDice(Dice a_dice) { a_dice.Roll(); foreach (DiceGameObserver o in m_observers) { o.DiceRolled(a_dice.GetValue()); } }
public bool Play() { RollDice(m_d1); System.Threading.Thread.Sleep(2000); RollDice(m_d2); return(m_d1.GetValue() + m_d2.GetValue() == 7); }