by JacksonGariety · 12y ago · 0 comments
The first time I played the game I scored around 3000 points. After that, I tried to slow down and focus on keep the same kinds of numbers together, but after that, I couldn't get past 2250.
So I wrote a script that used Math.random() to hit the array keys continually, and the score was much lower: 1000.
Then I tried the sequence RIGHT UP LEFT DOWN over and over instead of Math.random() I scored significantly higher than all of them, in the 4000s.
Does anyone know why this might be?
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.