Skip to content

Commit

Permalink
Update engine.js
Browse files Browse the repository at this point in the history
  • Loading branch information
JetSimon committed Feb 9, 2024
1 parent 84c5e50 commit 4bd8908
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions js/engine.js
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,13 @@ const VARIANCE = global_parameter[0].fields.global_variance;
function getCurrentVoteResults(e) {
rand = sfc32(seed[0], seed[1], seed[2], seed[3]);
let t = 1;
const i = e.getAllCandidatePKs();
const raw = getListOfCandidates();
let i = [];

for(combo of raw) {
i.push(combo[0]);
}

let r;
e.player_visits = [];
global_parameter[0].fields.question_count = e.questions.size;
Expand All @@ -74,7 +80,6 @@ function getCurrentVoteResults(e) {
let state_issue_score = Object.values(e.state_issue_scores);
let states = Object.values(e.states);


const s = i.map((candidate) => {
e.player_answers = [];
const n = e.player_answers.reduce((acc, answer) => {
Expand Down

0 comments on commit 4bd8908

Please sign in to comment.