tavinho né!!!!
Never
import random name1 = input('PLayer 1, qual o nome do seu personagem? ') print(f'Player 1, "{name1}" seja bem vindo.') name2 = input('Player 2,qual o nome do seu personagem? ') print(f'Player 2, "{name2}" seja bem vindo..') player_1 = 200 player_2 = 226 while player_1 or player_2: game_start = input(f'"{name1}", escolha a ação: [a]ttack, [s]uper_attack, [h]eal, = ') attack = random.randint(10, 15) super_attack = random.randint(2, 25) heal = random.randint(7, 20) hitpointmax1 = 200 hitpointmax2 = 226 acao = game_start lowlife = 0 if acao not in game_start: print(f'"{name2}" esquivou do ataque.') if game_start == 'a': player_2 = player_2 - attack print(f'"{name1}" jogou uma pedra com "{attack}" de dano, seu oponente tem "{player_2}" de vida') if player_2 < lowlife: break elif game_start == 's': player_2 = player_2 - super_attack print(f'"{name1}" seu HADUKENNN foi com "{super_attack}" de dano, seu oponente tem "{player_2}" de vida') if player_2 < lowlife: break elif game_start == 'h': if player_1 >= hitpointmax1: print(f'"{name1}" Vida maxima.') elif player_1 < hitpointmax1: player_1 = heal + player_1 print(f'"{name1}" sua cura foi "{heal}", agora você tem "{player_1}" de vida.') else: print(f'"{name2}" desviou o ataque! ') game_start1 = input(f'"{name2}", escolha a ação: [a]ttack, [s]uper_attack, [h]eal, = ') if game_start1 == 'a': player_1 = player_1 - attack print(f'"{name2}" atirou um PEIXE com "{attack}" de dano, agora seu oponemte tem "{player_1}" de vida') if player_1 < lowlife: break elif game_start1 == 's': player_1 = player_1 - super_attack print(f'"{name2}" atirou um CHICLETE com "{super_attack}" dano, agora seu oponente tem "{player_1}" de vida') if player_1 < lowlife: break elif game_start1 == 'h': if player_2 >= hitpointmax2: print(f'"{name2}" Vida maxima.') elif player_2 < hitpointmax2: player_2 = heal + player_2 print(f'"{name2}" sua cura foi "{heal}", agora você tem "{player_2}" de vida.') else: print(f'"{name1}" desviou o ataque! ') continue if player_1 < 0: print(f'"{name2}" você derrotou o "{name1}"!') elif player_2 < 0: print(f'"{name1}" você derrotou o "{name2}" ') print() print() print(f'O jogo acabou!!! O jogador "{name1}" ficou com' f' "{player_1}" de vida!!!! ' f'O jogador "{name2}" ficou com "{player_2}" de vida !!!!')
Raw Text
-
Breaking news - Update 1 - 12/01/2023 01:29:45
1 min ago
-
Breaking news - Update 1 - 12/01/2023 01:32:23
1 min ago
-
Breaking news - Update 1 - 12/01/2023 01:31:54
2 min ago
-
Breaking news - Update 1 - 12/01/2023 01:30:37
2 min ago
-
Breaking news - Update 1 - 12/01/2023 01:26:51
2 min ago
-
Breaking news - Update 1 - 12/01/2023 01:26:34
7 min ago
-
Breaking news - Update 1 - 12/01/2023 01:19:35
11 min ago
-
Breaking news - Update 1 - 12/01/2023 01:19:06
11 min ago
-
Breaking news - Update 1 - 12/01/2023 01:22:17
11 min ago
-
Breaking news - Update 1 - 12/01/2023 01:22:32
11 min ago