PGN output now correctly breaks after black has also moved

Wed, 29 Aug 2018 14:01:41 +0200

author
Mike Becker <universe@uap-core.de>
date
Wed, 29 Aug 2018 14:01:41 +0200
changeset 65
dcc5bd2c56c0
parent 64
4eda5df55f86
child 66
f5cc75565f7c

PGN output now correctly breaks after black has also moved

src/chess/pgn.c file | annotate | diff | comparison | revisions
--- a/src/chess/pgn.c	Wed Aug 29 13:55:18 2018 +0200
+++ b/src/chess/pgn.c	Wed Aug 29 14:01:41 2018 +0200
@@ -199,7 +199,7 @@
         // TODO: move time and maybe other comments
         
         /* line break every 10 moves */
-        if (i % 20)  {
+        if ((i-1) % 20)  {
             fputc(' ', stream);
         } else {
             fputc('\n', stream);

mercurial