tulinho

                Never    
Text
       
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, = ')

    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':
        attack = random.randint(10, 15)
        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':
        super_attack = random.randint(2, 25)
        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':
        heal = random.randint(7, 20)
        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, = ')
    lowlife = 0
    if game_start1 == 'a':
        attack = random.randint(10, 15)
        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':
        super_attack = random.randint(2, 25)
        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':
        heal = random.randint(7, 20)
        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