by valtron · 12y ago · 0 comments
var manager = new GameManager(4, KeyboardInputManager, HTMLActuator);
function play() {
manager.restart();
var m = 0;
while (!manager.over) {
manager.move(m);
m = (m+1)%4;
}
return manager.score;
}
... and that gets scores between 500 and 3000.(Edit) Histogram of 500 runs:
0k: ***
1k: *******************
2k: ****************
3k: *********
4k: *
5k: *
6k: *I think this might be a "hacker" version of the slot machine - the player feels as if he's in control while in fact the outcome is pretty random.
When you're nearly stuck, you can often pick left or right so that a new tile can access both 2 and 4 and save yourself.
I got comfortably to 1024 with one go of this method, scoring 16744.