v.0.5.5.2 nichts wichtiges

random löschen von zeilen und spalten nach glücksrad
main
Daniel Lehmann 2024-03-29 23:02:54 +01:00
parent a83f741613
commit 4b551023b7
1 changed files with 7 additions and 5 deletions

12
game.gd
View File

@ -162,7 +162,7 @@ func _instant_win():
#Zum Testen der Events #Zum Testen der Events
func _on_test_pressed(): func _on_test_pressed():
board.delete_column(6) board.delete_column(2)
func _spin_the_wheel(result: int) -> void: func _spin_the_wheel(result: int) -> void:
@ -178,11 +178,13 @@ func _spin_the_wheel(result: int) -> void:
elif result <= 45: elif result <= 45:
_five_wins() _five_wins()
elif result <= 65: elif result <= 65:
print("delete column")#Debug var zeile_zum_loeschen = randi() % 6 + 1
board.delete_column(6) print("delete column"+ zeile_zum_loeschen)#Debug
board.delete_column(zeile_zum_loeschen)
elif result <= 85: elif result <= 85:
print("delete row")#Debug var spalte_zum_loeschen = randi() % 6 + 1
board.delete_row(3) print("delete row" + spalte_zum_loeschen)#Debug
board.delete_row(spalte_zum_loeschen)
elif result <= 100: elif result <= 100:
print("größer als 85")#Debug print("größer als 85")#Debug