// public IGameMove GetSimulationMove() // { // return _simulationStrategy.selectMove(IGameMove.toIGameMoves(GetMoves())); // } public IGameState Clone() { Forza4GameState st = new Forza4GameState(_rows, _cols); for (int i = 0; i < _rows; i++) { for (int j = 0; j < _cols; j++) { st.board[i, j] = board[i, j]; } } st.currentPlayer = this.currentPlayer; st._winner = _winner; st._rows = _rows; st._cols = _cols; st.size = size; return(st); }
public IGameMove selectMove(IGameState gameState) { int[,] board = Forza4GameState.ParseBoard(gameState, 6, 7); return(MakeMove(board, gameState.currentPlayer)); }