flagged everything made by ai, removed debugging prints

This commit is contained in:
simoncreates
2026-03-03 22:23:47 +01:00
parent b673c1382c
commit b266fd740a
3 changed files with 14 additions and 16 deletions
+5 -4
View File
@@ -490,10 +490,11 @@ def on_move_request(payload):
current_color = room.board.turn
legal = room.board.generate_moves(current_color)
if move not in legal:
print(f"current_color: {current_color}")
print("rejecting move due to illegal move")
print(f"move: {move}")
room.board.print_legal_moves(current_color)
# todo: finish debugging castling
# print(f"current_color: {current_color}")
# print("rejecting move due to illegal move")
# print(f"move: {move}")
# room.board.print_legal_moves(current_color)
emit("move_reject", {"reason": "illegal move"}, to=sid)
return