misc: clear_board func

This commit is contained in:
2025-12-04 14:44:37 -05:00
Unverified
parent e232ff6606
commit 8b79af4b5b

View File

@@ -12,6 +12,9 @@ def calculate_move(opponent_move):
# TODO: Implement your move calculation logic here instead # TODO: Implement your move calculation logic here instead
return 0 return 0
def clear_board():
# TODO: Create an empty board
return
async def gameloop(socket): async def gameloop(socket):
board = [[None] * 6 for _ in range(7)] board = [[None] * 6 for _ in range(7)]
@@ -36,7 +39,7 @@ async def gameloop(socket):
| (message[1] == "TERMINATED") | (message[1] == "TERMINATED")
): # Game has ended ): # Game has ended
print(message[0] + ":" + message[1]) print(message[0] + ":" + message[1])
# TODO: Create an empty board clear_board()
await socket.send("READY") await socket.send("READY")
case "OPPONENT": # Opponent has gone; calculate next move case "OPPONENT": # Opponent has gone; calculate next move