Skip to content

Instantly share code, notes, and snippets.

View Nocks's full-sized avatar
🌍
Working remotely

Enock Kwesi Addey Nocks

🌍
Working remotely
View GitHub Profile
def process_placement(self, player):
for current_ship in player.ships:
player.current_ship_name = current_ship[0]
player.current_ship_length = current_ship[1]
player.current_ship = current_ship
while True:
# Placement_point is the input from the player (a2, d3, etc)
placement_point = self.ask_for_placement(
player.name,
player.current_ship_name,