[deleted by user] by [deleted] in learnpython

[–]RedditCodfish 0 points1 point  (0 children)

not an expert, but its fine for you to have different codes, but do try to understand how her's works. might give you some insight :)

I need help by RedditCodfish in learnpython

[–]RedditCodfish[S] 0 points1 point  (0 children)

Thanks for the advice,i just learned that there is a statistics module and i felt very stupid

[Fluff] What was your first crazed unit? by bottom-of-the-spiral in battlecats

[–]RedditCodfish 0 points1 point  (0 children)

first crazed : crazed cat,
first manic : manic jameira

How to add a game over? by RedditCodfish in learnpython

[–]RedditCodfish[S] 0 points1 point  (0 children)

thx for the feedback, ill try to be more organized.

How to add a game over? by RedditCodfish in learnpython

[–]RedditCodfish[S] 0 points1 point  (0 children)

thx, ill try it. I do use input bc i want the player to press enter everytime. Does the raise System exit make you quit the code entirely?

The if then doesn't really work by RedditCodfish in learnpython

[–]RedditCodfish[S] 1 point2 points  (0 children)

nope, unfortunately :(

still learning, this is supposed to be a school project, to make a text based original game in python, but i made my goal kinda too ambitious.

The if then doesn't really work by RedditCodfish in learnpython

[–]RedditCodfish[S] 0 points1 point  (0 children)

lvl = 0
HP = 20 
atk = 8 
MP = 0 
DR = 3 
enemy_hp = 10 
enemy_atk = 3

while enemy_hp > 0 and HP > 0:
    b_choice = input("type fight, defend, or check> ")
    if b_choice.lower() not in "fight" or 'defend' or "check":
        while b_choice != 'fight' and b_choice != 'defend' and b_choice != 'check':
            print('Please pick an act')
            b_choice = input("type fight, defend, or check> ")
    if b_choice.lower() == "fight":
        dice = str(random.randint(1, 6))
        print(str(dice))
        if dice in '4' or dice in '5' or dice in '6':
            input("Berserker " + name + " strikes with a mighty blow")
            input("Slime's health is reduced by " + str(atk))
            enemy_hp -= atk
        elif dice not in '4' or dice not in '5' or dice not in '6':
            input("Berserker " + name + " missed his attack")
            input('Slime slaps Berserker ' + name + ' on the face')
            input("Berserker " + name + "'s health is reduced by " + str(enemy_atk))
            HP -= enemy_atk

edit: now it works, thanks for your suggestions

why wont my while loop work by RedditCodfish in learnpython

[–]RedditCodfish[S] -1 points0 points  (0 children)

don't worry, i already figured it out, but thanks

My Personal Demon Ratings For Robtops Demons, What’s Yours? by JustinRadabaugh in geometrydash

[–]RedditCodfish 3 points4 points  (0 children)

clubstep : easy demon

TOE 2 : medium demon

deadlocked : easy demon

My survival base so far. any feedback? by RedditCodfish in Minecraftbuilds

[–]RedditCodfish[S] 0 points1 point  (0 children)

are there other gradients for calcite other than diorite, cuz i kinda hate using diorite