board.cpp
//play function for MCTS, it will not display who own and change turns auto
play function for MCTS, it will not display who own and change turns auto
play function for MCTS it will not display who own and change turns auto
void Board::playMCTS(int col){
  while(this->board.at(0).at(col) != '-' && col < 6){
      col++;
  }
  int row = getRow(col);
  this->last_row = row;
  this->last_col = col;
  if(this->turn == 'X'){
    this->setPos(row,col,'X');
    this->setTurn('O');
    return;
  }
  this->setPos(row,col,'O');
  this->setTurn('X');
  return;
}
void Board :: playMCTS ( int col ) { while ( this -> board . at ( 0 ) . at ( col ) != ' ' && col < 6 ) { col ++ ; } int row = getRow ( col ) ; this -> last_row = row ; this -> last_col = col ; if ( this -> turn == ' ' ) { this -> setPos ( row , col , ' ' ) ; this -> setTurn ( ' ' ) ; return ; } this -> setPos ( row , col , ' ' ) ; this -> setTurn ( ' ' ) ; return ; }
play function for MCTS, it will not display who own and change turns auto
play function for MCTS it will not display who own and change turns auto