示例#1
0
def potion_menu_select():
     x = -1
     while True:
         try:
             x = potion_menu_rechoice()
             if x not in (1,2,3):
                 print("error, type a different number")
         except ValueError:
             print("error, type a different number")
         if x == 1:
             reselect()

         elif x == 2:
             pass

         elif x == 3:
             quit_menu_choose()
示例#2
0
def choosen():
     x = -1
     while True:
         try:
             x = new_menu()
             if x not in (1,2,3,4):
                 print("error, type a different number")
         except ValueError:
             print("error, type a different number")
         if x == 1:
             reenter_name()

             print("python game")

         elif x == 2:
             roll()

         elif x == 4:
             print("quit")
             quit_menu_choose()
示例#3
0
def continue_menu_choose():
     x = -1
     while True:
         try:
             x = continue_menu()
             if x not in (1,2,3, 4):
                 print("error, type a different number")
         except ValueError:
             print("error, type a different number")
         if x == 1:
             roll()

         elif x == 2:
             potion_menu_choose()

         elif x == 3:
             save()

         elif x == 4:
            quit_menu_choose()