Example #1
0
from project_class import Room
from project_class import Pokemon
from project_class import Trainer
import random

v_city = Room('Viridian City', {}, [])
route_1 = Room('route 1', {}, [])
oak = Room('oak\'s office', {}, [])

oak.doors({'north': route_1})
route_1.doors({'south': oak, 'north': v_city})
v_city.doors({'south': route_1})

starters = []
all_pokes = []
bulb = Pokemon('bulbasaur', route_1, {'absorb': 5}, 'gary\'s grass starter')
squirt = Pokemon('squirtle', route_1, {'bubble': 5}, 'gary\'s water starter')
charm = Pokemon('charmander', route_1, {'ember': 5}, 'gary\'s fire starter')
bulbasaur = Pokemon('bulbasaur', oak, {'absorb': 20}, 'The grass starter')
squirtle = Pokemon('squirtle', oak, {'bubble': 20}, 'The water starter')
charmander = Pokemon('charmander', oak, {'ember': 20}, 'The fire starter')
oak.add_pokemon(bulbasaur)
oak.add_pokemon(squirtle)
oak.add_pokemon(charmander)
starters.append(bulb)
starters.append(squirt)
starters.append(charm)

player = Trainer('ash')

rb1 = Trainer('gary')
Example #2
0
from project_class import Room
from project_class import Pokemon
from project_class import Trainer
from project_class import Potion
import random

v_city = Room('Viridian City', {}, [])
route_1 = Room('Route 1', {}, [])
route_2 = Room('Route 2', {}, [])
oak = Room('Oak\'s office', {}, [])
broom = Room('Broom closet', {}, [])
v_city_mart = Room('Viridian City Mart', {}, [])
v_city_gym = Room('Viridian City Gym!', {}, [])
v_forest1 = Room('Viridian Forest 1', {}, [])
v_forest2 = Room('Viridian Forest 2', {}, [])
v_forest3 = Room('Viridian Forest 3', {}, [])
v_forest4 = Room('Viridian Forest 4', {}, [])
v_forest5 = Room('Viridian Forest 5', {}, [])
v_forest6 = Room('Viridian Forest 6', {}, [])
p_city = Room('Pewter City', {}, [])
p_city_mart = Room('Pewter City Mart', {}, [])
# pcg = 'pewter city gym'
pcg1 = Room('Pewter City Gym Room 1', {}, [])
pcg2 = Room('Pewter City Gym Room 2', {}, [])
pcg3 = Room('Pewter City Gym Room 3', {}, [])
pcg4 = Room('Pewter City Gym Room 4', {}, [])
pcg5 = Room('Pewter City Gym Room 5', {}, [])
pcg6 = Room('Pewter City Gym Room 6', {}, [])
pcg7 = Room('Pewter City Gym Room 7', {}, [])
pcg8 = Room('Pewter City Gym Room 8', {}, [])
brock = Room('Pewter City Gym\'s Trainer Room!', {}, [])