4 Commits

Author SHA1 Message Date
Hördle Bot
7a65c58214 feat: add healthcheck endpoint and bump version to 0.1.0.13 2025-11-26 23:39:06 +01:00
Hördle Bot
1a8177430d feat: add health check API endpoint 2025-11-26 23:37:40 +01:00
Hördle Bot
0ebb61515d docs: Add 'prototype' to footer disclaimer in AppFooter. 2025-11-26 20:42:55 +01:00
Hördle Bot
dede11d22b fix: correct plausible score calculation 2025-11-26 18:00:59 +01:00
4 changed files with 10 additions and 5 deletions

5
app/api/health/route.ts Normal file
View File

@@ -0,0 +1,5 @@
import { NextResponse } from 'next/server';
export async function GET() {
return NextResponse.json({ status: 'ok' }, { status: 200 });
}

View File

@@ -19,7 +19,7 @@ export default function AppFooter() {
<a href="https://digitalcourage.social/@elpatron" target="_blank" rel="noopener noreferrer">
@elpatron@digitalcourage.social
</a>
{' '}- for personal use among friends only!
{' '}- prototype for personal use among friends only!
{version && (
<>
{' '}·{' '}

View File

@@ -213,7 +213,7 @@ export default function Game({ dailyPuzzle, genre = null, isSpecial = false, max
props: {
genre: genre || 'Global',
attempts: gameState.guesses.length,
score: gameState.score + (correct ? 30 : 20), // Include win + year bonus
score: gameState.score + (correct ? 10 : 0), // Include year bonus if correct
outcome: 'won',
year_bonus: correct ? 'correct' : 'incorrect'
}
@@ -234,7 +234,7 @@ export default function Game({ dailyPuzzle, genre = null, isSpecial = false, max
props: {
genre: genre || 'Global',
attempts: gameState.guesses.length,
score: gameState.score + 20, // Include win bonus only
score: gameState.score, // Score already includes win bonus
outcome: 'won',
year_bonus: 'skipped'
}

View File

@@ -1,6 +1,6 @@
{
"name": "hoerdle",
"version": "0.1.0",
"version": "0.1.0.13",
"private": true,
"scripts": {
"dev": "next dev",
@@ -29,4 +29,4 @@
"eslint-config-next": "16.0.3",
"typescript": "^5"
}
}
}