IMO, in programming real applications, you should not hardcode most values.
In programming games, you should often hardcode values, and sometimes
not. (Games are not made to be reusable, and excessive softcoding
makes changing them an exercise in config file tweaking).
>
> Of course, you shouldn't
If you'd like to damage_to_enemy from temp_e_hp, you do the following
temp_e_hp -= damage_to_enemy
or
temp_e_hp = temp_e_hp- damage_to_enemy.
Read the single equals sign as the word "gets" in your head.
To get a random integer between two numbers, you do the folowing:
import random
random.ra
On Sun, Mar 16, 2008 at 10:59 AM, jake cooper <[EMAIL PROTECTED]>
wrote:
> print 'You inflicted', damage_to_enemy, "points of damage to your
> enemy" #shows damage dealt
> temp_e_hp - damage_to_enemy #!!!attempts to deduct damage_to_enemy
> from temp_e_hp!!!
> print temp_e_hp**
>
*
Hey everyone :)
I'm extremely new to programming as python is the first language I have
attempted to learn (and I only started yesterday!)
I decided to start learning by attempting to create a short textbased rpg.
My progress so far has been rather haphazard to say the least, but I think I
might