Fix winner condition

This commit is contained in:
0880
2026-01-21 13:25:19 +03:30
parent a9d6476b75
commit ab13de5bc3

2
app.py
View File

@@ -580,7 +580,7 @@ async def move(request: Request, room_id):
if not opp_checkmate:
break
if opp_checkmate:
room.state = State.BLACK_WIN if is_white else State.WHITE_WIN
room.state = State.WHITE_WIN if is_white else State.BLACK_WIN
return {
"code": "MOVD",
"color": color.value,