diff --git a/quiz.js b/quiz.js index 6d906938d6f75e1abf1d51e20c958a6efd86a130..534092b367fea0bbee1e89e25498004d2ad85ddd 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) {