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(); }
private void Roll(object sender, RoutedEventArgs e) { Results.Add(Dices.Roll()); }