player class

This commit is contained in:
2025-07-26 14:13:55 +02:00
parent e577c389e3
commit b56ccb610a
4 changed files with 23 additions and 1 deletions

12
player.py Normal file
View File

@@ -0,0 +1,12 @@
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