Feat: which bot to move

This commit is contained in:
Grail Finder
2025-05-20 16:16:57 +03:00
parent 2342c56aed
commit 59cccbbe8e
6 changed files with 81 additions and 12 deletions

View File

@ -85,7 +85,7 @@ func HandleShowColor(w http.ResponseWriter, r *http.Request) {
fi.Room.IsRunning = false
fi.Room.IsOver = true
fi.Room.TeamWon = oppositeColor
case "white", oppositeColor:
case "white", string(oppositeColor):
// end turn
fi.Room.TeamTurn = oppositeColor
}