예제 #1
0
파일: start.py 프로젝트: plafrance/TP4
+--------------------------------------------+
                ''' % game_id)

                wait_for_game(game_id)

        if choix_menu_3 == 'C':
            API.clear()
            print("""
+--------------------------------------------+
|
| Rejoindre une partie
|
+--------------------------------------------+
                """)
            game_id = input("Le numéro de la parite: ")
            valid_data = API.isValidGame(game_id)
            valid = True if valid_data["messageCode"] == 17 else False
            while not game_id.isdigit() or not valid:
                API.clear()
                if not valid:
                    print("*** %s ***" % valid_data["message"])
                game_id = input("*Le numéro de la parite: ")
                valid_data = API.isValidGame(game_id)
                valid = True if valid_data["messageCode"] == 17 else False

            API.clear()
            print('''
+--------------------------------------------+
| Choissisez votre personnage
|
| a. Un mage