Advertisement
Guest User

Untitled

a guest
Jan 19th, 2017
75
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.98 KB | None | 0 0
  1.     def check_4_bomb(self):
  2.         #sprawdz = input("Co miałbym zrobić jesli w coś wdepnąłem?")
  3.         if (self.tab[self.RX][self.RY] == "Mina"):
  4.             self.tab_start[self.RX][self.RY] = "!"
  5.             self.display()
  6.             print('Chyba w cos wdepnalem')
  7.  
  8.             self.say2()
  9.  
  10.  
  11.             #time.sleep(5)
  12.             #print('KBOOOOOOM!')
  13.             #exit(0)
  14.  
  15.  
  16.     def wybuch(self):
  17.         time.sleep(5)
  18.         print('KBOOOOOOM!')
  19.         exit(0)
  20.  
  21.     def waitkey(self): #sprawdzenie inputa
  22.         sprawdz=input("Wdepnalem w cos, co mam zrobic\n")
  23.         if self.sprawdz in ["rozbroj", "unicestw"]
  24.             self.rozbroj()
  25.      
  26.     def rozbrajanie(self):
  27.         if (self.tab[self.RX][self.RY]== "Mina"):
  28.             self.tab_start[self.RX][self.RY] = "X"
  29.             print("ROZBROJONO BOMBE")
  30.             ilosc_min -= 1
  31.             continue
  32.             #O to rozbrojona mina
  33.             #TODO funkcja wyboru typu rozbroic czy isc dalej
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement