Advertisement
Guest User

Untitled

a guest
Jun 22nd, 2017
66
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.39 KB | None | 0 0
  1. ruch_komp = True
  2.  
  3. while ruch_komp:
  4. x = randint(1, 10)
  5. y = randint(1, 10)
  6.  
  7. if plansza.plansza[x - 1][y - 1] != 'x ' and plansza.plansza[x - 1][y - 1] != 'o ':
  8. if plansza.plansza[x - 1][y - 1] == '■ ':
  9. plansza.strzal_traf(x, y)
  10. else:
  11. plansza.strzal_nietraf(x, y)
  12. ruch_komp = False
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement