multiple changes

- add engdame state to local game
- clean engine code
- add endgame tests
- fix tests
- fix san checkmate symbol
This commit is contained in:
Cozma Rares
2023-08-06 00:50:13 +03:00
parent 68fdf7dd8d
commit d33b2b4dd2
14 changed files with 559 additions and 293 deletions
+1 -1
View File
@@ -92,7 +92,7 @@ io.on("connection", (socket) => {
});
if (process.env.NODE_ENV === "development")
app.get("/games", (_req, res) => {
app.get("/debug/games", (_req, res) => {
const m = new Map();
rooms.forEach((room, id) =>
m.set(id, {