This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| def Desider() -> bool: | |
| playerChoise = input("Орел или решка? ").strip().lower() | |
| return playerChoise == "орел" | |
| def IsWin(coin:int, playerChoise:bool): | |
| if coin == playerChoise: | |
| print("Победа!") | |
| else: | |
| print("Поражение!") |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| extends Area2D | |
| func _on_body_entered(body): | |
| if body.is_in_group("player"): | |
| body._take_damage(20) |