示例#1
0
 public void ToggleSelectDice(model.Dice dice, int i)
 {
     if (dice.GetDice()[i].Save)
     {
         dice.GetDice()[i].Save = false;
     }
     else
     {
         dice.GetDice()[i].Save = true;
     }
 }
示例#2
0
 public void DisplayDiceValues(model.Dice dice)
 {
     Console.WriteLine("Dice values");
     foreach (model.Die die in dice.GetDice())
     {
         System.Threading.Thread.Sleep(400);
         Console.Write(die.Value + ", ");
     }
     Console.WriteLine("\n");
 }
示例#3
0
        public void SelectDice(model.Dice dice)
        {
            Console.WriteLine("Select dice to keep");
            int i = 1;

            foreach (model.Die die in dice.GetDice())
            {
                Console.Write(i + ". " + die.Value);
                if (die.Save)
                {
                    Console.Write("(Saved)");
                }
                Console.WriteLine();
                i++;
            }
            Console.WriteLine(i + ". Done");
        }