aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorThomas White <taw@physics.org>2014-06-16 17:28:58 +0200
committerThomas White <taw@physics.org>2015-01-29 13:23:37 +0100
commitfbfd6e7a78089f99ebff3a98b2816ad4d0b571ca (patch)
tree207f5309e38feead010078c35c86f21d758abcbd /src
parent5a397b385b52f2379ab605797ce2b9fb4ea1d534 (diff)
Show * for first view in series
Diffstat (limited to 'src')
-rw-r--r--src/whirligig.c6
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);