feat(multi): award points based on both clicks and time

This commit is contained in:
jessy-david-dev
2026-04-11 23:08:09 +02:00
parent b1fcbbdb04
commit 5627a4bb30
2 changed files with 32 additions and 11 deletions
+2
View File
@@ -16,6 +16,7 @@ export type Player = {
hasSurrendered: boolean;
isHost: boolean;
lastSeen: number; // timestamp ms
wonAt: number | null; // timestamp ms quand le joueur a trouvé l'article cible
};
export type Room = {
@@ -152,6 +153,7 @@ export async function POST(request: NextRequest) {
hasSurrendered: false,
isHost: true,
lastSeen: Date.now(),
wonAt: null,
},
];