src/main.c

changeset 51
84f2e380a434
parent 50
41017d0a72c5
child 52
26707039d5a6
equal deleted inserted replaced
50:41017d0a72c5 51:84f2e380a434
114 } 114 }
115 if (settings->analyzepgn) { 115 if (settings->analyzepgn) {
116 fprintf(stderr, "The options -c and -S are mutually exclusive\n"); 116 fprintf(stderr, "The options -c and -S are mutually exclusive\n");
117 return 1; 117 return 1;
118 } 118 }
119 // TODO: implement
120 if (!settings->singlemachine) {
121 fprintf(stderr, "Game continuation currently not supported for "
122 "network games.\n");
123 return 1;
124 }
125 } 119 }
126 120
127 return 0; 121 return 0;
128 } 122 }
129 123
151 printw(" Time limit: %dm + %ds\n", 145 printw(" Time limit: %dm + %ds\n",
152 gameinfo->time/60, gameinfo->addtime); 146 gameinfo->time/60, gameinfo->addtime);
153 } 147 }
154 } else { 148 } else {
155 printw(" No time limit\n"); 149 printw(" No time limit\n");
150 }
151 refresh();
152 }
153
154 void dump_moveinfo(GameState *gamestate) {
155 int i = 1;
156 for (MoveList *movelist = gamestate->movelist ;
157 movelist ; movelist = movelist->next) {
158 if (++i % 2 == 0) {
159 printw("%d. %s", i/2, movelist->move.string);
160 } else {
161 printw(" %s", movelist->move.string);
162 }
163 if (i % 20) {
164 addch(' ');
165 } else {
166 addch('\n');
167 }
156 } 168 }
157 refresh(); 169 refresh();
158 } 170 }
159 171
160 void leavescr() { 172 void leavescr() {

mercurial