示例#1
0
        public static void MakeMove(C4Game game)
        {
            GameTree tree = new GameTree(game);

            tree.Expand(8);

            Move bestMove = tree.GetBestMove();

            game.RecordMove(bestMove);
        }
示例#2
0
        public void NewGame()
        {
            //Game = new C4Game(C4GameSettings.PlayerCount, C4GameSettings.BoardWidth, C4GameSettings.BoardHeight);
            Game = new C4Game(2, 7, 6, 4);

            ClientSize = GetPreferedWindowSize();
            Refresh();

            RunComputerPlayers();
        }