From ce6e2ea1bdb05324bd6c94fea6841f14e480c7b4 Mon Sep 17 00:00:00 2001 From: Michiel Scholten Date: Thu, 7 Nov 2024 14:11:49 +0100 Subject: [PATCH] Do not count rejected guesses, and show number of guesses done --- src/alfagok/static/game.js | 2 +- src/alfagok/templates/index.html | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/alfagok/static/game.js b/src/alfagok/static/game.js index e3f9126..05af3b2 100644 --- a/src/alfagok/static/game.js +++ b/src/alfagok/static/game.js @@ -48,7 +48,6 @@ document.addEventListener('alpine:init', () => { return; } - this.nrGuesses++; if (this.startTime === null) { console.log('Setting startTime to now'); this.startTime = new Date(); @@ -70,6 +69,7 @@ document.addEventListener('alpine:init', () => { } return; } + this.nrGuesses++; if (result.hint && result.hint === 'after') { this.guessesBefore.push(this.guessValue); this.guessesBefore.sort(); diff --git a/src/alfagok/templates/index.html b/src/alfagok/templates/index.html index b09e1bf..c0b0a32 100644 --- a/src/alfagok/templates/index.html +++ b/src/alfagok/templates/index.html @@ -12,7 +12,7 @@
- alfagok puzzel # + alfagok puzzel # gokken

Raad het woord van de dag. Elke gok geeft een hint over waar het woord zich in het alfabet bevindt.