| Choissisez votre personnage | | a. Un mage | b. Un guerrier +--------------------------------------------+ ''') choix_personnage = API.choix_menu(['A', 'B']) if API.joinGame(game_id,choix_personnage): wait_for_game(game_id) if choix_menu_3 == 'D': quit() if choix_menu_2 == "B": options = [] data_store = API.getStore() API.clear() print(''' +--------------------------------------------+ | | Les armes''') for arme in data_store["weapons"]: options += [arme["code"]] print("| %s) %s <%s py> Attaque min: %s max: %s" % (arme["code"], arme["name"], arme["price"], arme["min"], arme["max"])) print("|\n| Les boucliers") for arme in data_store["shields"]: options += [arme["code"]] print("| %s) %s <%s py> Protection: %s" % (arme["code"], arme["name"], arme["price"], arme["strength"])) print('''| +--------------------------------------------+''') choix_achat = API.choix_menu(options)