예제 #1
0
 static void Main(string[] args)
 {
     Gomoku.White_Player white_Player = new Gomoku.White_Player();
     Gomoku.Black_Player black_Player = new Gomoku.Black_Player();
     white_Player.opponent = black_Player;
     black_Player.opponent = white_Player;
     Gomoku.Gomoku_game game = new Gomoku.Gomoku_game(white_Player, black_Player);
     game.Game_start();
     for (int i = 0; i < 15; i++)
     {
         for (int j = 0; j < 15; j++)
         {
             if (Gomoku.Gomoku_game.game_board[j, i].piece == 1)
             {
                 Console.Write("x");
             }
             else if (Gomoku.Gomoku_game.game_board[j, i].piece == 2)
             {
                 Console.Write("o");
             }
             else
             {
                 Console.Write("_");
             }
         }
         Console.WriteLine();
     }
     Console.ReadKey();
 }
예제 #2
0
        static public Condition[,] game_board = new Condition[15, 15];      // игровая доска, которая представляет собой массив объектов, которые описывают приоритеты для каждого игрока


        public Gomoku_game(White_Player white_player, Black_Player black_player)
        {
            this.white_player = white_player;
            this.black_player = black_player;
        }