• OK, it's on.
  • Please note that many, many Email Addresses used for spam, are not accepted at registration. Select a respectable Free email.
  • Done now. Domine miserere nobis.

2048 AI

Architect

Professional INTP
Local time
Yesterday 5:07 PM
Joined
Dec 25, 2010
Messages
6,687
---
Not the year, the game!

Try this interesting little game 2048.

Join the numbers and get to the 2048 tile
HOW TO PLAY: Use your arrow keys to move the tiles. When two tiles with the same number touch, they merge into one!

1. Take it Slow
2048 is so easy to play, you might get into the habit of tearing through games without even really paying attention to what you're doing. That's not a good idea. Take your time - there's no penalty for thinking your moves through after all. Also, try to predict where new blocks might come in and how you could deploy them. Something like playing chess.



2. Work The Corners
In order to win the game you should have a specific strategy. If you do not have one, you will most probaly not reach furthr than 512. So, a good strategy is to always keep your hiest value tile at one of the corners. Just chooose one corner and direct all your tiles there. It is not as easy as it sounds, but you can master it quickly. In order to stop the highest value tile to leave "the king's place", try to pack tiles around it. Preferably, they should be the other biggest tiles. Master this simple strategy and you will soon reach 1024 and even win the 2048 Game!



3. How to make the highest valued tile in the right bottom corner and not to move it?
Once you have placed your highest tile value is in the right bottom corner, do not move it. To make sure it is not moved, you have to make the last row always filled by pushing the down arrow so that the use of LEFT and Right Arrow would not move the highest valued tile. Basically, this is the most important cheat for 2048 Game - keep the highest tile in the corner and do not move it.

And here's a web page by a 17 year old HS school student in Taiwan who came up with an AI for it.

This article looks at how to develop an AI for the game 2048. The AI discussed in this article searches using the Expectimax algorithm, together with the gradient heuristic, to a depth of 8 to compute the next best possible move (this is very deep for a 2048 expectimax AI).

Neat little problem worth looking into from the links I gave above. Good example also of how to get into programming, just take interesting toy problems and figure out how to solve them. You can be using AI techniques too.
 

bartoli

Member
Local time
Today 1:07 AM
Joined
Jan 5, 2013
Messages
70
---
Location
France
Yes, this is a nice programming exercise idea. I always thought it would be more fun to program a sudoku solver than to solve a sudoku puzzle for example
 

Brontosaurie

Banned
Local time
Today 1:07 AM
Joined
Dec 4, 2010
Messages
5,646
---
i can't beat my first highscore (6788) after trying like 20 times. and also i fail to grasp the point of this thread. typical sensor pleb kinda guy.
 

Brontosaurie

Banned
Local time
Today 1:07 AM
Joined
Dec 4, 2010
Messages
5,646
---
mathematic is for sensors. my perception goes beyond the mathematics.
 

Black Rose

An unbreakable bond
Local time
Yesterday 5:07 PM
Joined
Apr 4, 2010
Messages
11,431
---
Location
with mama

Brontosaurie

Banned
Local time
Today 1:07 AM
Joined
Dec 4, 2010
Messages
5,646
---
interesting
what are they capable of?

the mathematic is for people who want everything into the division of numbers 1, 2, 3 etc... while in reality the numbers are continously infinitive

at least until i beat TheManBeyond
 

StevenM

beep
Local time
Yesterday 7:07 PM
Joined
Apr 11, 2014
Messages
1,077
---
ohhhhhhhhhh!

I got the 1024, I guess I'm halfway through.....

PS: what a long game.
 

crippli

disturbed
Local time
Today 1:07 AM
Joined
Jan 15, 2008
Messages
1,779
---
Good game.



iejo1j.jpg

15xl7vq.jpg

r89wmr.jpg

2gv9ekk.jpg
 

SilentStorm

Member
Local time
Yesterday 7:07 PM
Joined
Jan 16, 2014
Messages
51
---
Location
Indiana
I'm somewhere around my 20th play through and keep getting stuck on 1,024. Cool AI though, I wish I was that smart when I was 17.
 

EyeSeeCold

lust for life
Local time
Yesterday 4:07 PM
Joined
Aug 12, 2010
Messages
7,828
---
Location
California, USA
Second try:
512 block / 5452 score

The game is available on the google play store if anyone's interested.
 

QuickTwist

Spiritual "Woo"
Local time
Yesterday 6:07 PM
Joined
Jan 24, 2013
Messages
7,182
---
Location
...
I can already tell you I will fail at this game but I'll give it a shot anyways.

2636
 

crippli

disturbed
Local time
Today 1:07 AM
Joined
Jan 15, 2008
Messages
1,779
---
There is a pattern to how to do the game. I tried it again.
5 minuets to get to this
25pjpqv.jpg
3 more minutes
51eufb.jpg
Then 5 more minutes, as there are fewer moves, but one gets punishes if one push the wrong arrow. As I think is the hardest challenge with the game.
34exo48.jpg

This post took longer time to write.
 

QuickTwist

Spiritual "Woo"
Local time
Yesterday 6:07 PM
Joined
Jan 24, 2013
Messages
7,182
---
Location
...
Damn, it took you that long?!?! My problem was keeping everything symmetrical. I gave up trying to actually beat the game.
 

onesteptwostep

Junior Hegelian
Local time
Today 8:07 AM
Joined
Dec 7, 2014
Messages
4,251
---
5688 so far... hmm...

11436 now!

There's a strategy to it :P

F***. 16240. Goddamn.
 
Top Bottom