Commit 21da515b authored by Ari Trachtenberg's avatar Ari Trachtenberg
Browse files

add getBoardSquare

parent bba3ac30
Loading
Loading
Loading
Loading
+3 −3
Original line number Diff line number Diff line
@@ -205,8 +205,8 @@ string getBoard(GAME_CODE theGameCode) {
}

SQUARE getBoardSquare(string board, int theRow, int theCol) {
  int cols = board.find("\n");
  return board[theRow*(cols+1)+theCol];
  int cols = board.find("\\n");
  return board[theRow*(cols+2)+theCol];
}