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.
Tried 3 games, and the scores were 2700, 1200, 5000. So maybe. But then I wrote a function to play it for me:
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;
}
This is actually a good method: by using this method (avoiding up and favouring down), you tend to cluster 2s and 4s towards the top while larger numbers percolate downwards (and towards the middle). If you encourage this natural tendency, you can do even better.
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.
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?