public int CheckWinner(GameBoard problem) { return(problem.CheckWinner()); }
public void Player1Move(GameBoard problem, Tuple <int, int> move) { problem.Move(move.Item1, move.Item2, opponentID); }
public void Player2Move(GameBoard problem, Tuple <int, int> move) { problem.Move(move.Item1, move.Item2, playerID); }
public List <Tuple <int, int> > GetPossibleMoves(GameBoard problem) { return(problem.GetEmptyFields()); }
public GameBoard GetProblem(GameBoard problem) { return(new GameBoard(problem)); }
private void CurrentPlayerMakeAMove(Location newLocation) { GameBoard.UpdateBoard(newLocation, CurrentPlayer.Piece); _turn++; }
public void SetGameBoard(int rows, int columns, int winingSeriesCount) { gameBoard = new GameBoard(rows, columns, winingSeriesCount); }
public void UpdateBoard(GameBoard board) { _board = board; Redraw(); }