Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- def clear_board_A(): #pole gracza A
- def clear_board_B(): #pole gracza B
- def shoot_board_A(): #pole do strzelania gracza B
- def shoot_board_B(): #pole do strzelania gracza A
- def print_board(board): #drukowanie pól w ładnej postaci 10x10
- for row in board:
- print (" ".join(row))
- def column(orient): #wybór kolumny przez gracza
- def row(orient): #wybór wiersza przez gracza
- def orientation(): #wybór kierunku statku
- def ship_size(): #wybór wielkości statku
- def ship_coordinates(ship_size): #stworzenie listy z koordynatami wszystkich części statku
- def ship_checker(): #sprawdzenie czy nowo ustawiany statek nie nachodzi na inne statki
- def print_ship(): #umieszczanie statku w bazie danych
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement