Implemented game serialization to the PGN format #16
@ -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);
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user