If you want to hack it, give it a binary de Bruijn sequence with alphabet size k=2. Since it looks to follow whichever pattern already exists, and de bruijn sequences minimize existing patterns, it always beats the game.
I used http://combos.org/bruijn and pressed left for zero and right for one.
Using rule Grandmama creates close to a perfectly straight line up and to the right when you start from the first 1 in the sequence.
Try: 1001000101010011010000110010110110001110101110011110111111000000
where 1 is right and 0 is left.