This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// ==UserScript== | |
// @name CollabCenterImprovements | |
// @namespace https://canadianveggie.com/ | |
// @version 0.6 | |
// @match https://bcres.paragonrels.com/CollabCenter/* | |
// @require https://gist.github.com/raw/2625891/waitForKeyElements.js | |
// @grant GM_addStyle | |
// @grant GM.openInTab | |
// ==/UserScript== |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import random | |
n_runs = 100000 | |
stars_needed_from_25_to_legendary = 10+15+20+25+25 | |
stars_above_which_no_bonus_is_awarded = stars_needed_from_25_to_legendary-25 | |
max_games = 20000 | |
def stars_to_rank(stars): | |
ranks_gained = 0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# http://fivethirtyeight.com/features/will-someone-be-sitting-in-your-seat-on-the-plane/ | |
import random | |
from collections import defaultdict | |
n_seats = 100 | |
results_correct_seats=defaultdict(int) | |
results_by_boarding_order=defaultdict(int) | |
iterations = 1000000 |