Loading ttt_interface/ttt.cpp +3 −3 Original line number Diff line number Diff line Loading @@ -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]; } Loading Loading
ttt_interface/ttt.cpp +3 −3 Original line number Diff line number Diff line Loading @@ -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]; } Loading