diff options
author | lonkaars <l.leblansch@gmail.com> | 2021-02-26 11:16:17 +0100 |
---|---|---|
committer | lonkaars <l.leblansch@gmail.com> | 2021-02-26 11:16:17 +0100 |
commit | 16983d110e90972ceed4ca6d65473d038c9cb854 (patch) | |
tree | 6518252492f186186b1446cb85f65fd60609c980 /voerbak/win.c | |
parent | 4979a5ec8b88f7a385b7ec6ed5a26bbcfe4ff7f3 (diff) |
diewertje beginnings
Diffstat (limited to 'voerbak/win.c')
-rw-r--r-- | voerbak/win.c | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/voerbak/win.c b/voerbak/win.c index 021601a..80ab0ba 100644 --- a/voerbak/win.c +++ b/voerbak/win.c @@ -44,8 +44,11 @@ bool checkWin(Board *b, int pos) { int start_pos = pos + directions[i+0] * values[i+0]; int end_pos = pos + directions[i+4] * values[i+4]; - printf("w:%d-%d\n", start_pos, end_pos); - fflush(stdout); + + if (verbosity >= 0) { + printf("w:%d-%d\n", start_pos, end_pos); + fflush(stdout); + } } } |