Beispiel #1
0
        static public void Main(string[] args)
        {
            int[]     blackHoleCoords = GetBlackHoleCoords();
            PieceEnum testerColour    = GetTesterColour();
            IPlayer   tester          = new HumanPlayer(testerColour);
            IPlayer   bot             = new AIPlayer(GetOpponentColour(testerColour));

            if (testerColour == PieceEnum.black)
            {
                game = new Game(tester, bot);
            }
            else
            {
                game = new Game(bot, tester);
            }
            Game.gameEndEvent  += gameEndHandler;
            Game.nextMoveEvent += nextMoveHandler;
            game.InitGame(blackHoleCoords);
            game.PlayRound();
        }