Пример #1
0
        static void Main(string[] args)
        {
            Player A     = new Human(Color.White);
            Player B     = new Human(Color.Black);
            Board  board = new Board(A, B);

            do
            {
                board.ExecuteTurn();
            } while (!board.MatchEnded());

            Console.Clear();
            board.PrintMatchResult();
        }
Пример #2
0
        static void AB()
        {
            Player A     = new AlphaBeta(Color.White, 4);
            Player B     = new RandomPlayer(Color.Black);
            Board  board = new Board(A, B);

            do
            {
                board.ExecuteTurn();
                board.Print();
                Console.Read();
            } while (!board.MatchEnded());
            board.PrintMatchResult();
            Console.ReadLine();
        }