Files
battleships/player.py
2025-07-26 14:13:55 +02:00

13 lines
298 B
Python

class Player():
def __init__(self, board, ships = 5):
self.board = board
self.ships = ships #alive ships
self.shot_positions = [] #just add the shot positions here individually
def get_hit(self, position):
pass
def shoot(self, position):
pass