コード例 #1
0
ファイル: GameLogic.cs プロジェクト: arebokert/Grupp-G7
 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];
 }
コード例 #2
0
ファイル: Program.cs プロジェクト: arebokert/Grupp-G7
        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);
        }