change server to enable debug and not output body output getting very long

This commit is contained in:
2024-04-12 23:10:00 +02:00
parent 5e63d0b35e
commit 3aec07a7e7
3 changed files with 4 additions and 2 deletions
+1 -1
View File
@@ -45,7 +45,7 @@ def start(game_state: typing.Dict):
def move(game_state: typing.Dict) -> typing.Dict:
next_move = SNAKE.choose_move(game_state)
game_state_storage.add_moves(game_state["board"], next_move)
print("MOVE:", f"{next_move},", "Me:", {"body": game_state["you"]["body"], "head": game_state["you"]["head"], "length": game_state["you"]["length"]})
print("MOVE:", f"{next_move:5},", "Me:", {"head": game_state["you"]["head"], "length": game_state["you"]["length"]})
return {"move": next_move}
# end is called when your Battlesnake finishes a game