Beispiel #1
0
 public TicTacToe(TicTacToe original)
 {
     board = new Marble[10];
     count = original.count;
     for (int i = 1; i < board.Length; i++)
     {
         board[i] = original.board[i];
     }
 }
Beispiel #2
0
        public Move Minimax(TicTacToe.Marble player, int depth)
        {
            foreach (var move in game.GetPossibleMoves(player))
            {
                TicTacToe cpyOfBoard = new TicTacToe(game);
            }

            throw new NotImplementedException();
        }
 public void InitGame()
 {
     ttt            = new TicTacToe();
     turn           = TicTacToe.Marble.CROSS;
     label1.Text    = "Turn:";
     label2.Text    = "Place new marble";
     this.BackColor = Color.White;
     Invalidate(true);
 }
Beispiel #4
0
 public ComputerPlayer(TicTacToe game)
 {
     this.game = game;
 }