From b12c077a067d07a7262055af6d91967a710ecafa Mon Sep 17 00:00:00 2001 From: David PC Saiz Date: Wed, 8 Feb 2023 18:54:30 +0100 Subject: [PATCH] =?UTF-8?q?Methode=20mit=20der=20das=20Spielfeld=20ges?= =?UTF-8?q?=C3=A4ubert=20wird?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/Paper-Bin.c | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/src/Paper-Bin.c b/src/Paper-Bin.c index 09f5cfd..3c35d0f 100644 --- a/src/Paper-Bin.c +++ b/src/Paper-Bin.c @@ -91,6 +91,20 @@ void getStartPosition() } +void clearField() +{ + int fieldWidth = 25; + int fieldHeigth = 30; + + for (int i = 0; i <= fieldWidth; i++) + { + for (int j = 0; j <= fieldHeigth; j++) + { + field[i][j] = ' '; + } + } +} + void Generatefield() { }