holding cards, kinda

This commit is contained in:
2025-08-27 23:00:01 -04:00
parent 686529507e
commit d69336027a
6 changed files with 43 additions and 20 deletions

View File

@@ -10,7 +10,6 @@ import dayjs from "dayjs";
import db from "./db";
import { liveTable, WsOut, WsIn } from "./table";
import { Human } from "@prisma/client";
import _ from "lodash";
import { combine } from "kefir";
const api = new Elysia({ prefix: "/api" })
@@ -89,9 +88,9 @@ const api = new Elysia({ prefix: "/api" })
send({ players })
);
table.outputs.playersReady.onValue((readys) =>
send({ playersReady: readys })
);
table.outputs.playersReady
.skipDuplicates()
.onValue((readys) => send({ playersReady: readys }));
combine(
[table.outputs.gameState],