Skip to content

Instantly share code, notes, and snippets.

@droidicus
droidicus / rdr2_bj_stats_fullmonte.py
Created November 24, 2018 19:47
A better Monte-carlo simulation of the 8th Gambler Challenge (Blackjack) in Red Dead Redemption 2
# Would you even remember your damn horse's name if I hadn't told you again?
import numpy as np
import tqdm
# I been TELLIN' you to shut up!
UPDATE_INTERVAL = 100000
class Deck(object):
# Alright now, you sure them cards is all there?
def __init__(self):
@droidicus
droidicus / rdr2_bj_stats.py
Last active November 24, 2018 07:18
A quick and dirty Monte-carlo simulation of the 8th Gambler Challenge in Red Dead Redemption 2
# Would you even remember your damn horse's name if I hadn't told you again?
import numpy as np
import tqdm
# I been TELLIN' you to shut up!
UPDATE_INTERVAL = 1000000
# Alright now, you sure them cards is all there?
quarter_deck = range(1,14)
quarter_deck = [i if i<10 else 10 for i in quarter_deck]