예제 #1
0
 static void Main()
 {
     Console.Title = "Backgammon game";
     Console.SetWindowSize(boardWidth, boardHeight);
     Console.OutputEncoding = Encoding.Unicode;
     DrawEmptyTable();
     for (int i = 0; i < checkers.Length; i++)
         if (checkers[i] != 0)
             DrawCheckerPile(i);
     Dices dices = new Dices();
     do
     {
         dices.Roll();
         UserTurn(dices);
         dices.Roll();
         ComputerTurn(dices);
     } while (true);
     Console.ReadLine();
 }
예제 #2
0
 private void Roll(object sender, RoutedEventArgs e)
 {
     Results.Add(Dices.Roll());
 }