From dbc2290d2571f1cde1d70368d7079e240622e4fa Mon Sep 17 00:00:00 2001 From: Luis Hahn Date: Mon, 5 Feb 2024 13:27:35 +0100 Subject: [PATCH] =?UTF-8?q?=C3=9Cberarbeitung=20der=20Print=5FSchachfeld?= =?UTF-8?q?=20funktion,=20Luis=20Hahn?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/Schachbrett.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/Schachbrett.c b/src/Schachbrett.c index a707b25..96f770e 100644 --- a/src/Schachbrett.c +++ b/src/Schachbrett.c @@ -47,12 +47,18 @@ char** Schachbrett_erstellen() { } void print_Schachfeld(char** Brett) { + int counter = 1; + printf(" - 1 2 3 4 5 6 7 8 \n"); for (int i = 0; i < 8; i++) { + printf(" %d " , counter); + counter++; for (int j = 0; j < 8; j++) { printf(" %c ", Brett[i][j]); } printf("\n"); } + printf("\n"); + printf("\n"); } void Schachbrettspeicher_freigeben(char** Brett) {