updated to 18 artists per game

This commit is contained in:
marsteralex 2022-09-13 14:04:36 +02:00
parent 37da650aca
commit 68bdadde37

View File

@ -50,6 +50,7 @@ function putIntoMapAndFetch(data) {
}
cardNames = Array.from(Object.keys(allData))
window.console.log(allData)
window.console.log(cardNames)
window.console.log(total)
if (whichGuesser === 'counterspell') {
document.getElementById('guess-type').innerText = 'Counterspell Guesser'
@ -97,9 +98,6 @@ function getKSamples() {
delete allData[key]
}
}
if (whichGuesser == 'artist') {
usedCounters = new Set(cardNames)
} else {
let count = 0
shuffleArray(cardNames)
for (let j = 0; j < cardNames.length; j++) {
@ -116,7 +114,7 @@ function getKSamples() {
}
}
}
}
return [samples, usedCounters]
}
@ -144,7 +142,7 @@ function createNewArtistMap() {
samples[key] = value
newTotal += value.length
i++
if (i >= k + extra) {
if (i >= k + extra * 2) {
break
}
}