From ce9b436f023a2b52f11cc9803eb08814b352ded9 Mon Sep 17 00:00:00 2001 From: Philip Kaludercic <philip.kaludercic@fau.de> Date: Sun, 21 Jan 2024 12:38:48 +0000 Subject: [PATCH] Weight right answers quadratically --- quiz.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/quiz.js b/quiz.js index 6d90693..534092b 100644 --- a/quiz.js +++ b/quiz.js @@ -7,7 +7,7 @@ * http://creativecommons.org/publicdomain/zero/1.0/. */ "use strict"; -const version = "$Id: quiz.js,v 1.20 2024/01/21 10:11:10 oj14ozun Exp oj14ozun $"; +const version = "$Id: quiz.js,v 1.21 2024/01/21 11:04:51 oj14ozun Exp oj14ozun $"; const js_version = document.getElementById("js-version"); js_version.innerText = version; @@ -55,7 +55,7 @@ function get_data(q) { function evaluate(q) { const data = get_data(q); - return 2 * data["right"] - data["wrong"] + 4 * Math.random() - 2; + return data["right"] ** 2 - data["wrong"] + 4 * Math.random() - 2; } function update_stats(q) { -- GitLab