<s> from data . states import shop , levels , battle , main_menu , death <EOL> from data . states import credits <EOL> from . import setup , tools <EOL> from . import constants as c <EOL> TOWN = '<STR_LIT>' <EOL> MAIN_MENU = '<STR_LIT>' <EOL> CASTLE = '<STR_LIT>' <EOL> HOUSE = '<STR_LIT>' <EOL> INN = '<STR_LIT>' <EOL> ARMOR_SHOP = '<STR_LIT>' <EOL> WEAPON_SHOP = '<STR_LIT>' <EOL> MAGIC_SHOP = '<STR_LIT>' <EOL> POTION_SHOP = '<STR_LIT>' <EOL> PLAYER_MENU = '<STR_LIT>' <EOL> OVERWORLD = '<STR_LIT>' <EOL> BROTHER_HOUSE = '<STR_LIT>' <EOL> BATTLE = '<STR_LIT>' <EOL> DUNGEON = '<STR_LIT>' <EOL> DUNGEON2 = '<STR_LIT>' <EOL> DUNGEON3 = '<STR_LIT>' <EOL> DUNGEON4 = '<STR_LIT>' <EOL> DUNGEON5 = '<STR_LIT>' <EOL> INSTRUCTIONS = '<STR_LIT>' <EOL> DEATH_SCENE = '<STR_LIT>' <EOL> LOADGAME = '<STR_LIT>' <EOL> CREDITS = '<STR_LIT>' <EOL> def main ( ) : <EOL> """<STR_LIT>""" <EOL> run_it = tools . Control ( setup . ORIGINAL_CAPTION ) <EOL> state_dict = { MAIN_MENU : main_menu . Menu ( ) , <EOL> TOWN : levels . LevelState ( TOWN ) , <EOL> CASTLE : levels . LevelState ( CASTLE ) , <EOL> HOUSE : levels . LevelState ( HOUSE ) , <EOL> OVERWORLD : levels . LevelState ( OVERWORLD , True ) , <EOL> BROTHER_HOUSE : levels . LevelState ( BROTHER_HOUSE ) , <EOL> INN : shop . Inn ( ) , <EOL> ARMOR_SHOP : shop . ArmorShop ( ) , <EOL> WEAPON_SHOP : shop . WeaponShop ( ) , <EOL> MAGIC_SHOP : shop . MagicShop ( ) , <EOL> POTION_SHOP : shop . PotionShop ( ) , <EOL> BATTLE : battle . Battle ( ) , <EOL> DUNGEON : levels . LevelState ( DUNGEON , True ) , <EOL> DUNGEON2 : levels . LevelState ( DUNGEON2 , True ) , <EOL> DUNGEON3 : levels . LevelState ( DUNGEON3 , True ) , <EOL> DUNGEON4 : levels . LevelState ( DUNGEON4 , True ) , <EOL> DUNGEON5 : levels . LevelState ( DUNGEON5 , True ) , <EOL> INSTRUCTIONS : main_menu . Instructions ( ) , <EOL> LOADGAME : main_menu . LoadGame ( ) , <EOL> DEATH_SCENE : death . DeathScene ( ) , <EOL> CREDITS : credits . Credits ( ) <EOL> } <EOL> run_it . setup_states ( state_dict , c . MAIN_MENU ) <EOL> run_it . main ( ) </s>
