parent
a83f741613
commit
4b551023b7
12
game.gd
12
game.gd
|
@ -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
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue