From 4b936cb9bd17e1a3e4925e9ed09cafc9f1adca9e Mon Sep 17 00:00:00 2001 From: Emman Mensdorf Date: Thu, 8 Feb 2024 11:20:47 +0100 Subject: [PATCH] Puzzlebrett initialisiert, Emman Mensdorf --- src/Raetsel_I_Zug_schachmat/Raetsel_I_.c | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/src/Raetsel_I_Zug_schachmat/Raetsel_I_.c b/src/Raetsel_I_Zug_schachmat/Raetsel_I_.c index e645708..a5e395e 100644 --- a/src/Raetsel_I_Zug_schachmat/Raetsel_I_.c +++ b/src/Raetsel_I_Zug_schachmat/Raetsel_I_.c @@ -45,4 +45,18 @@ char** Puzzlebrett_erstellen() { } return Brett; +} + +void print_Puzzle(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"); } \ No newline at end of file