Ejemplo n.º 1
0
 public GameLogic(Board b, SaveBoard s)
 {
     Counter = 0;
     board = b;
     saveBoard = s;
     GameOverCheck= new Boolean[]{false,false };
     gameOver = false;
     CurrentRoundTilesToChange = new int[8, 8];
     CurrentCheckTilesToChange = new int[8, 8];
 }
Ejemplo n.º 2
0
        static void Main()
        {
            Board b = new Board();
            SaveBoard s = new SaveBoard();
            GameLogic g = new GameLogic(b, s);
            GameRules gr = new GameRules(g, b);
            View v = new View(gr, b, g);
            AI ai = new AI(gr, b,g);

            g.onSwitcherChange += ai.switcherChanged;
            s.onBoardChange += g.boardArrayChanged;
            s.onBoardChange += v.boardArrayChanged;
            g.onScoreChange += v.scoreChanged;
            g.onGameOverChange += v.gameOverChanged;
            g.onTurnChange += gr.playerTurnChanged;
            g.onTurnChange += v.turnChanged;

            Application.EnableVisualStyles();
            Application.Run(v);
        }