Guess the City
Correct!
Wrong!
Results
a.toLowerCase()), answerCity.name.toLowerCase()]; const success = legals.some(l => l === guessedCity.toLowerCase()); if (success) didWin = true; else didLose = true; guesses.push(didWin) console.log(guesses) setTimeout(() => { didWin = didLose = false; guessedCity = ''; currentCity++; const city = cities[currentCity]; window.map.jumpTo({ center: [city.lng, city.lat], zoom: city.zoom, bearing: randomizeBearing ? Math.random() * 360 : 0, }); setTimeout(() => { $refs.guessInput.focus(); }, 10) }, 2_000); ">
Guess:
Dev Mode
Press space to toggle
Cities
/
/
Randomize bearing
Print position