time to take a break from the game
lunch in 15 mins
chill out for now
I know if then
I know lists
I know how to pull randomly from lists
should be a lot of fun making this game considering that's all I really want to use
once I get a decent game
I can start working on randomint
and have damage taken and damage dealt also in the game
if you have 30 hp rabbit has 15 hp
then randomint 2-7 or so
then keeping record of both hp and having a you defeated the rabbit in the code
randomint1
randomint2
randomint3
if randomint1 + randomint2 + randomint3 > 30
print("rabbit is defeasted")
import random
# Generates a random number between
# a given positive range
r1 = random.randint(0, 10)
print("Random number between 0 and 10 is % s" % (r1))
# Generates a random number between
# two given negative range
r2 = random.randint(-10, -1)
print("Random number between -10 and -1 is % d" % (r2))
# Generates a random number between
# a positive and a negative range
r3 = random.randint(-5, 5)
print("Random number between -5 and 5 is % d" % (r3))
randint() Function in Python - GeeksforGeeks
the % (r#))
r# = random.randint
need a if # > then print