Advertisement
Guest User

Untitled

a guest
Aug 17th, 2018
58
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.73 KB | None | 0 0
  1. def clear_board_A(): #pole gracza A
  2.  
  3. def clear_board_B(): #pole gracza B
  4.  
  5. def shoot_board_A(): #pole do strzelania gracza B
  6.  
  7. def shoot_board_B(): #pole do strzelania gracza A
  8.  
  9. def print_board(board): #drukowanie pól w ładnej postaci 10x10
  10. for row in board:
  11. print (" ".join(row))
  12.  
  13. def column(orient): #wybór kolumny przez gracza
  14.  
  15. def row(orient): #wybór wiersza przez gracza
  16.  
  17. def orientation(): #wybór kierunku statku
  18.  
  19. def ship_size(): #wybór wielkości statku
  20.  
  21. def ship_coordinates(ship_size): #stworzenie listy z koordynatami wszystkich części statku
  22.  
  23. def ship_checker(): #sprawdzenie czy nowo ustawiany statek nie nachodzi na inne statki
  24.  
  25. def print_ship(): #umieszczanie statku w bazie danych
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement