Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ruch_komp = True
- while ruch_komp:
- x = randint(1, 10)
- y = randint(1, 10)
- if plansza.plansza[x - 1][y - 1] != 'x ' and plansza.plansza[x - 1][y - 1] != 'o ':
- if plansza.plansza[x - 1][y - 1] == '■ ':
- plansza.strzal_traf(x, y)
- else:
- plansza.strzal_nietraf(x, y)
- ruch_komp = False
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement