From 4b551023b72fff8b6f44a23764d3c4e2f3c23eeb Mon Sep 17 00:00:00 2001 From: Daniel Lehmann <3004405@stud.hs-mannheim.de> Date: Fri, 29 Mar 2024 23:02:54 +0100 Subject: [PATCH] v.0.5.5.2 nichts wichtiges MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit random löschen von zeilen und spalten nach glücksrad --- game.gd | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/game.gd b/game.gd index a194b4e..ca44e6f 100644 --- a/game.gd +++ b/game.gd @@ -162,7 +162,7 @@ func _instant_win(): #Zum Testen der Events func _on_test_pressed(): - board.delete_column(6) + board.delete_column(2) func _spin_the_wheel(result: int) -> void: @@ -178,11 +178,13 @@ func _spin_the_wheel(result: int) -> void: elif result <= 45: _five_wins() elif result <= 65: - print("delete column")#Debug - board.delete_column(6) + var zeile_zum_loeschen = randi() % 6 + 1 + print("delete column"+ zeile_zum_loeschen)#Debug + board.delete_column(zeile_zum_loeschen) elif result <= 85: - print("delete row")#Debug - board.delete_row(3) + var spalte_zum_loeschen = randi() % 6 + 1 + print("delete row" + spalte_zum_loeschen)#Debug + board.delete_row(spalte_zum_loeschen) elif result <= 100: print("größer als 85")#Debug