Compare commits
4 Commits
v0.1.0.11
...
7a65c58214
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
7a65c58214 | ||
|
|
1a8177430d | ||
|
|
0ebb61515d | ||
|
|
dede11d22b |
5
app/api/health/route.ts
Normal file
5
app/api/health/route.ts
Normal file
@@ -0,0 +1,5 @@
|
|||||||
|
import { NextResponse } from 'next/server';
|
||||||
|
|
||||||
|
export async function GET() {
|
||||||
|
return NextResponse.json({ status: 'ok' }, { status: 200 });
|
||||||
|
}
|
||||||
@@ -19,7 +19,7 @@ export default function AppFooter() {
|
|||||||
<a href="https://digitalcourage.social/@elpatron" target="_blank" rel="noopener noreferrer">
|
<a href="https://digitalcourage.social/@elpatron" target="_blank" rel="noopener noreferrer">
|
||||||
@elpatron@digitalcourage.social
|
@elpatron@digitalcourage.social
|
||||||
</a>
|
</a>
|
||||||
{' '}- for personal use among friends only!
|
{' '}- prototype for personal use among friends only!
|
||||||
{version && (
|
{version && (
|
||||||
<>
|
<>
|
||||||
{' '}·{' '}
|
{' '}·{' '}
|
||||||
|
|||||||
@@ -213,7 +213,7 @@ export default function Game({ dailyPuzzle, genre = null, isSpecial = false, max
|
|||||||
props: {
|
props: {
|
||||||
genre: genre || 'Global',
|
genre: genre || 'Global',
|
||||||
attempts: gameState.guesses.length,
|
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',
|
outcome: 'won',
|
||||||
year_bonus: correct ? 'correct' : 'incorrect'
|
year_bonus: correct ? 'correct' : 'incorrect'
|
||||||
}
|
}
|
||||||
@@ -234,7 +234,7 @@ export default function Game({ dailyPuzzle, genre = null, isSpecial = false, max
|
|||||||
props: {
|
props: {
|
||||||
genre: genre || 'Global',
|
genre: genre || 'Global',
|
||||||
attempts: gameState.guesses.length,
|
attempts: gameState.guesses.length,
|
||||||
score: gameState.score + 20, // Include win bonus only
|
score: gameState.score, // Score already includes win bonus
|
||||||
outcome: 'won',
|
outcome: 'won',
|
||||||
year_bonus: 'skipped'
|
year_bonus: 'skipped'
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "hoerdle",
|
"name": "hoerdle",
|
||||||
"version": "0.1.0",
|
"version": "0.1.0.13",
|
||||||
"private": true,
|
"private": true,
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"dev": "next dev",
|
"dev": "next dev",
|
||||||
@@ -29,4 +29,4 @@
|
|||||||
"eslint-config-next": "16.0.3",
|
"eslint-config-next": "16.0.3",
|
||||||
"typescript": "^5"
|
"typescript": "^5"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
Reference in New Issue
Block a user