Beispiel #1
0
 private void NewGame()
 {
     if ((Cols * Rows) > Mines)
     {
         game = new Game(Cols, Rows, Mines);
         MineGridSource.ItemsSource = GameGrid;
         ResizeGrid();
     }
 }
Beispiel #2
0
        public MainWindow()
        {
            InitializeComponent();
            {
                GameWindow.DataContext = this;
                Rows = 10;
                Cols = 10;
                Mines = 20;

                game = new Game(Cols, Rows, Mines);

                ResizeGrid();
            }
        }
 public ConsoleView(Game game)
 {
     m_game = game;
 }