From c9f4b4e74b34e9532f72019db4b597ee24d30b6f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ra=C3=BAl=20Benencia?= Date: Sat, 28 Mar 2015 19:42:26 -0300 Subject: clean board printing --- lib/print.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'lib/print.c') diff --git a/lib/print.c b/lib/print.c index 8bf63fb..d584fcc 100644 --- a/lib/print.c +++ b/lib/print.c @@ -53,6 +53,7 @@ void print_piece(Piece p) { } void print_square(Square s) { + printf("| "); if (s.piece == NULL) if (s.color == WHITE) putchar(' '); @@ -60,6 +61,8 @@ void print_square(Square s) { putchar('/'); else print_piece(*s.piece); + + putchar(' '); } /* @@ -77,9 +80,7 @@ void print_board(Board b, Color side) { printf("%c ", current_row); // Print the square - printf("| "); print_square(board_get_square(b, c)); - putchar(' '); // Shall we move forward or backwards? c = _next_coord(c, side); -- cgit v1.2.3