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