aboutsummaryrefslogtreecommitdiff
path: root/voerbak/win.c
diff options
context:
space:
mode:
authorlonkaars <l.leblansch@gmail.com>2021-02-26 11:16:17 +0100
committerlonkaars <l.leblansch@gmail.com>2021-02-26 11:16:17 +0100
commit16983d110e90972ceed4ca6d65473d038c9cb854 (patch)
tree6518252492f186186b1446cb85f65fd60609c980 /voerbak/win.c
parent4979a5ec8b88f7a385b7ec6ed5a26bbcfe4ff7f3 (diff)
diewertje beginnings
Diffstat (limited to 'voerbak/win.c')
-rw-r--r--voerbak/win.c7
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);
+ }
}
}