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

Weight right answers quadratically

parent 961ea2d0
No related branches found
No related tags found
No related merge requests found
......@@ -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) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment