Skip to content

Instantly share code, notes, and snippets.

@tanutarou
tanutarou / pennygame.py
Created December 25, 2015 05:00
Penney's game simulation
import numpy as np
N = 10000
winfreq = np.array([0, 0])
playerA = "111"
playerB = "011"
for i in xrange(N):
res = [2, 2, 2]
while True: