flagged everything made by ai, removed debugging prints
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user