Run Code
|
API
|
Code Wall
|
Misc
|
Feedback
|
Login
|
Theme
|
Privacy
|
Patreon
Dungeon
#python 2.7.12 patk = 5 php = 100 plck = 1 pspd = 10 eatk = 0 ehp = 0 elck = 0 espd = 0 dmg = 0 crit = 0 print('This is a doungeon simulation') print('You will fight bots that are randomly generate') print('generating enemy...') eatk.randomint(3,7) ehp.randomint(75,125) elck.randomint(0,2) espd.randomint(5,15) while ehp != 0 or php != 0: print(f'The enemy you are facing has {ehp} HP') if pspd < espd: dmg.randomint(patk - 3, patk + 3) if crit.randomint(1,101) => plck: dmg = dmg*3 ehp = ehp - dmg print(f'You delt {dmg} damage to the enemy with a crit!') else: ehp = ehp - dmg print(f'You delt {dmg} damage to the enemy') print(f'The enemy is on {ehp} HP') dmg.randomint(eatk - 3, eatk + 3) if crit.randomint(1,101) => elck: dmg = dmg*3 php = php - dmg print(f'You took {dmg} damage from the enemys attack,') print('it was a crit!') else: php = php - dmg print(f'You took {dmg} damage from the enemy') print(f'You are on on {ehp} HP')
run
|
edit
|
history
|
help
0
Mounesh
Nun
Chain length calculator
python2 - division - 0
Nama Bulan Python
ElaineBrown**
fibonacci_2
Chain length calculator
Parity in Python
Run