From 128196c69f05fa709c1d6cbe7b0e5326eca931c8 Mon Sep 17 00:00:00 2001 From: Philip Kaludercic <philip.kaludercic@fau.de> Date: Wed, 24 Jan 2024 17:49:52 +0000 Subject: [PATCH] Adjust evaluation function --- quiz.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/quiz.js b/quiz.js index d7891ae..5638da2 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.28 2024/01/21 19:44:14 oj14ozun Exp oj14ozun $"; +const version = "$Id: quiz.js,v 1.29 2024/01/21 21:34:05 oj14ozun Exp oj14ozun $"; const js_version = document.getElementById("js-version"); js_version.innerText = version; @@ -58,7 +58,7 @@ function get_data(q) { function evaluate(q) { const data = get_data(q); - return data["right"] ** 2 - data["wrong"] + 4 * Math.random() - 2; + return (1 - Math.random() ** 3) * (data["right"] ** 2 - data["wrong"]) + 6 * Math.random() - 3; } function update_stats(q) { -- GitLab