Implemented game serialization to the PGN format #16

Merged
CyB3RC0nN0R merged 9 commits from f/pgn_save into master 2019-12-11 07:53:46 +01:00
Showing only changes of commit 3e5d584e6f - Show all commits

View File

@ -103,7 +103,7 @@ public class PGNGame {
if (line.length() + chunk.length() <= 80) line += chunk; if (line.length() + chunk.length() <= 80) line += chunk;
else { else {
pw.println(line); pw.println(line);
line = ""; line = chunk;
} }
if (!line.isEmpty()) pw.println(line); if (!line.isEmpty()) pw.println(line);
} }