From 1200fd15d5a110b15c16a333936bd3c74f90cbca Mon Sep 17 00:00:00 2001 From: lonkaars Date: Tue, 16 Feb 2021 12:59:45 +0100 Subject: semi-working voerbak_connector.py --- console/voerbak.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'console/voerbak.c') diff --git a/console/voerbak.c b/console/voerbak.c index a7807b6..4ee20e4 100644 --- a/console/voerbak.c +++ b/console/voerbak.c @@ -11,6 +11,7 @@ void printBoard(int board[], int width, int height) { for (int i = 0; i < width * height; i++) printf("%d", board[i]); printf("\n"); + fflush(stdout); } void printHumanBoard(int board[], int width, int height) { @@ -71,6 +72,7 @@ bool checkWin(int board[], int width, int height, 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); } } -- cgit v1.2.3