This is a game I made where you fight a monster in a battle
I think this is a good game you have here, let me make a few suggestions on what you can add:
- Make the damage dealt and healed a bit more random (You can set a range of
integers to be randomly generated using import random)
- The player's health and the monster's health need to have a cap. Once they reach 100
or so, healing shouldn't add to their total health
- Add some flair. There's a lot more you can do here, giving boosters on random rounds
that increase damage for a few turns or having a random chance of the monster
respawning as a surprise twist at the end, if the player wins
Overall great game, if you have extra time on your hands, try to improve on this!
@coderbob Considering you're new, you've done pretty good. Here's some sample code for making the damage and heal amounts random:
damageAmount = random.randint(8, 20)
healAmount = random.randint(10, 15)
-The randint() function will generate a random integer between two numbers you specify, including the lowest and highest numbers, so random.randint(10, 15) will really generate a random number between 10 and 15.
-This will allow you to make things a bit more interesting in the game, but remember to redefine the heal and damage amounts every round, or it'll be the same every time once it's defined.
Make of this what you will and have fun!