Skip to content
Snippets Groups Projects
Commit 128196c6 authored by Philip Kaluđerčić's avatar Philip Kaluđerčić :u7121:
Browse files

Adjust evaluation function

parent 3039f1c4
No related branches found
No related tags found
No related merge requests found
...@@ -7,7 +7,7 @@ ...@@ -7,7 +7,7 @@
* http://creativecommons.org/publicdomain/zero/1.0/. */ * http://creativecommons.org/publicdomain/zero/1.0/. */
"use strict"; "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"); const js_version = document.getElementById("js-version");
js_version.innerText = version; js_version.innerText = version;
...@@ -58,7 +58,7 @@ function get_data(q) { ...@@ -58,7 +58,7 @@ function get_data(q) {
function evaluate(q) { function evaluate(q) {
const data = get_data(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) { function update_stats(q) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment