Skip to content

Instantly share code, notes, and snippets.

@mattmazzola
Created November 23, 2020 03:11
Show Gist options
  • Save mattmazzola/d034d4e69e6f6bf97dbfb83541d5b3cf to your computer and use it in GitHub Desktop.
Save mattmazzola/d034d4e69e6f6bf97dbfb83541d5b3cf to your computer and use it in GitHub Desktop.
Execute Games
// Execute simulation
const numQuestionsPerPlayer = 100
// The maximum difference that a question's rating will be from the player's rating
// Simulates a queuing system the pairs likely candidates
const ratingRange = 250
const symmetricResults = simulateGames(symmetricRatingSystem, players, questions, numQuestionsPerPlayer, ratingRange)
const asymmetricResults = simulateGames(asymmetricRatingSystem, players2, questions2, numQuestionsPerPlayer, ratingRange)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment