Beispiel #1
0
        public void NewGame()
        {
            Game = new TttGame(TttGameSettings.PlayerCount, TttGameSettings.BoardWidth, TttGameSettings.BoardHeight, TttGameSettings.WinLength);

            ClientSize = GetPreferedWindowSize();
            Refresh();

            RunComputerPlayers();
        }
Beispiel #2
0
        public static void MakeMove(Game game)
        {
            GameTree tree = new GameTree(game);

            tree.Expand(9);

            Move bestMove = tree.GetBestMove();

            game.RecordMove(bestMove);
        }
Beispiel #3
0
 public TttGameTree(Game game)
 {
     Game = game;
 }