For me it is pretty consistently 50% +/- 5 even after a minute. It doesn't seem to work well if you repeat the same key a lot (i.e don't flip to often).
This is actually due to a psychological thing where humans don't find long strings of repeated letters/digits "random" and hence will flip more frequently than you'd expect from a machine.
I also recall there being a problem in the use of 5-grams which lead to a sequence in which it guessed 0%, but I'm struggling to find it now.
This is definetly not working. I'm certain that one can write a program like this, but I'm consistenly getting 50 % even though I use different strategies every time.
I got 52% after a good lot of keypresses (not sure exactly how many). I chose to not look at the screen at all during that time - I think that probably helps.
I did something like this a long time ago in a little competition for beating others' rock paper scissors programs, except I used the other players' moves relative to my own (e.g. my program could catch on to the other player choosing the move that would beat my last move) as well as their current pattern of winning or losing.
and typed 'd' for True and 'f' for False in the array, bringing the accuracy of the predictor down to 53%. Theoretically, I'm guessing doing it for large enough numbers should make it exactly 50%.
sctb|9 years ago
throwaway2016a|9 years ago
overlordalex|9 years ago
I also recall there being a problem in the use of 5-grams which lead to a sequence in which it guessed 0%, but I'm struggling to find it now.
widforss|9 years ago
oneeyedpigeon|9 years ago
andrezsanchez|9 years ago
vorotato|9 years ago
rohanprabhu|9 years ago
[os.urandom(1)[0] < 128 for x in xrange(0, 100)]
and typed 'd' for True and 'f' for False in the array, bringing the accuracy of the predictor down to 53%. Theoretically, I'm guessing doing it for large enough numbers should make it exactly 50%.
mikeash|9 years ago
dzdt|9 years ago
pi-rat|9 years ago
amake|9 years ago
js8|9 years ago
For k=1: 01 repeating
For k=2: 0011 repeating
For k=3: 00010111 repeating
justinpombrio|9 years ago
[1] https://en.wikipedia.org/wiki/De_Bruijn_sequence#Algorithm
WillKirkby|9 years ago
edit: dangit, beaten to the punch.
tokenizerrr|9 years ago
andrewclunn|9 years ago