I'm unable to reproduce the results. Balance is always negative. What's wrong with my code? // for a graph var balances = []; // constants var winnings = 1, losses = -1, epsilon = 0.05; function play(probOfWinning) { return Math.random()
The graph in the article shows the average state of each round over 1 million games.