From 0e533a096cc0a41d1b55f60d1b9014307829783e Mon Sep 17 00:00:00 2001 From: fdai7037 Date: Wed, 8 Feb 2023 18:34:03 +0100 Subject: [PATCH] =?UTF-8?q?Die=20Auswahl=20f=C3=BCr=20die=20Startposition?= =?UTF-8?q?=20eingef=C3=BCgt?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/Paper-Bin.c | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/Paper-Bin.c b/src/Paper-Bin.c index 911ea34..a8d20ba 100644 --- a/src/Paper-Bin.c +++ b/src/Paper-Bin.c @@ -60,12 +60,17 @@ void getStartPosition() while (Bally == -1) { - for (int i = 2, j = 0; i <= 15; i += 2, j++) + for (int i = 2, j = 0; i <= 20; i += 2, j++) { field[i][Bally] = j + '0'; } } Generatefield(); + //printf("W\x84\hle die position des Balls (0-9):\n"); + printf("W\x84\hle die position des Balls (0-9):\n"); + + scanf("%d", &Ballx); + }