Live data from Hacker News

2048 AI

ov3y.github.io

171–180 of 197 posts

Re: 2048 AI

#173
post #135

Earlier quoted context omitted.

Not bad. My new simple algo is: 1. Down until you cannot go down 2. Left 3. Down until you cannot go down 4. Right 5. Go to 1.

Right/Down/right/Down with an Up/Right/Down thrown in when stuck has worked well for me. My first 1024 block came that way. When I began playing I was moving around the board in an unorganized fashion, but am now finding that moving the larger numbers to one corner (bottom-right for me) is the best method. By having your block consolidation take place in one particular area, the odds that you'll have matching large n…

15,456

Yup, this one works very well.

Re: 2048 AI

#174
post #78

Hahah, I knew this was coming sooner or later. Thanks! Great job! EDIT: This AI is a better player than me.

I don't know if you've experienced it yourself or have heard other reports of it, but after playing your game for a few hours last night I've been experiencing a 2048-flavored "tetris effect" all day today. My brain keeps on trying to identify "like things" to collapse together; pretty wild.

I used to get that with other games such as Amplitude on the PS2. I'd close my eyes and my brain could see the game being played with incredible detail. It's happened to me with other games also. I think of it as a type of mental burn in. Goes away after a while.

Re: 2048 AI

#175

I've been playing this for awhile now and I think I have found that the best method is to only use 3 directions. This forces your highest number into a corner and only spawns 2's and 4's in the opposite corner. You build up numbers that cascade down to the corner. It almost never gets stuck, but if you do I guess you'd have to push the 4th direction you haven't been using.

Finally won with 21180 points. https://dl.dropboxusercontent.com/u/58437091/awwyis.PNG

Re: 2048 AI

#176
What algorithms might do better than this minimax? I've just read all the comments and there are no suggestions...

Re: 2048 AI

#177
This AI was doing impressively well but still did not quite reach 2048 stopping just before the end.

The way I won myself rather quickly was using bottom right priority and ignoring up key(which was suggested by HN).

That is put highest scoring tiles bottom and sorted to the right if possible.

So it is mostly down, right, with some lefts, but no ups. This way is really easy to get 1024, I think I reached 2048 on the 3rd try with this strategy(score was 20k something).

Re: 2048 AI

#178
post #78

Hahah, I knew this was coming sooner or later. Thanks! Great job! EDIT: This AI is a better player than me.

I don't know if you've experienced it yourself or have heard other reports of it, but after playing your game for a few hours last night I've been experiencing a 2048-flavored "tetris effect" all day today. My brain keeps on trying to identify "like things" to collapse together; pretty wild.

This happened to me during my commute. I was visualizing stacks of cars smashing together and disappearing in front of me. Very unsettling.

Re: 2048 AI

#180
Nice one :)

Now, since the board is 16 tiles, and that you need two 2^n can make a 2^(n+1), the max game that can be played is 2^16=65536.

Can a 65536 game can be reallistically won, can it be by OP's AI?

Post reply on HN