diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/whirligig.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/whirligig.c b/src/whirligig.c index 23a1060d..ea78edb8 100644 --- a/src/whirligig.c +++ b/src/whirligig.c @@ -294,10 +294,14 @@ int main(int argc, char *argv[]) if ( try_all(&win[pos-1], cur, &c1, &c2, &mat[pos]) ) { ser[pos-1] = c1; ser[pos] = c2; - printf("*"); } else { ser[pos] = -1; mat[pos] = NULL; + } + + if ( ser[pos-1] != -1 ) { + printf("*"); + } else { printf("-"); } fflush(stdout); |