src/main.c

changeset 51
84f2e380a434
parent 50
41017d0a72c5
child 52
26707039d5a6
--- a/src/main.c	Mon Jun 16 13:45:31 2014 +0200
+++ b/src/main.c	Mon Jun 16 15:41:06 2014 +0200
@@ -116,12 +116,6 @@
             fprintf(stderr, "The options -c and -S are mutually exclusive\n");
             return 1;
         }
-        // TODO: implement
-        if (!settings->singlemachine) {
-            fprintf(stderr, "Game continuation currently not supported for "
-                "network games.\n");
-            return 1;
-        }
     }
     
     return 0;
@@ -157,6 +151,24 @@
     refresh();
 }
 
+void dump_moveinfo(GameState *gamestate) {
+    int i = 1;
+    for (MoveList *movelist = gamestate->movelist ;
+        movelist ; movelist = movelist->next) {        
+        if (++i % 2 == 0) {
+            printw("%d. %s", i/2, movelist->move.string);
+        } else {
+            printw(" %s", movelist->move.string);
+        }
+        if (i % 20)  {
+            addch(' ');
+        } else {
+            addch('\n');
+        }
+    }
+    refresh();
+}
+
 void leavescr() {
     endwin();
 }

mercurial