def _setup_cli(self): option_sep = str(self.option_sep)[0] name_sep = str(self.name_sep)[0] cli = CLI(option_sep, name_sep) #Setting home_conf_path to a valid path will enable reading home options #from a file other than the default file. #self.home_conf_path = cli.arguments(ui_name.home_conf_path) self.operation = cli.arguments[ui_name.operation] self.ui_arguments = cli.arguments self.ticket_id = cli.arguments.get(ui_name.ticket_id) self.source_dir = cli.arguments.get(ui_name.source_dir) self.include = cli.arguments.get(ui_name.include) self.context = cli.arguments.get(ui_name.context) self.target = cli.arguments.get(ui_name.target) project_code = cli.arguments.get(ui_name.project_code) self.project_code = project_code and project_code.strip().upper()
import numpy as np import random from game import Joueur from game import Jeu from ui import CLI if __name__ == "__main__": ###################### Test de la fonction distribuer et de la fonction afficherJeu ################ ui = CLI() A = Joueur("jen1", 1, 1) B = Joueur("jen2", 1, 1) C = Joueur("jen3", 1, 1) D = Joueur("jen4", 1, 1) jeu = Jeu(A, B, C, D, ui) # jeu.distribuerCarte(5) # jeu.afficherJeu() jeu.jouer(1) ###################### Fin du Test ######################################## #A faire: Gestion de l'initialisation des joueurs avec la création du jeu (de la partie).