Java-Gaming.org Hi !
Featured games (83)
games approved by the League of Dukes
Games in Showcase (539)
Games in Android Showcase (133)
games submitted by our members
Games in WIP (603)
games currently in development
News: Read the Java Gaming Resources, or peek at the official Java tutorials
 
    Home     Help   Search   Login   Register   
Pages: 1 [2]
  ignore  |  Print  
  AI Challenge: '2048'  (Read 10112 times)
0 Members and 1 Guest are viewing this topic.
Online matheus23

JGO Kernel


Medals: 114
Projects: 3


You think about my Avatar right now!


« Reply #30 - Posted 2014-03-14 14:03:59 »

If the random component would be deterministic (ok, only needs a seeded Random), you could implement an AI that at least
can brute force a few rounds ahead, to see a favorable current move. (ending up with the highest card collection, not beeing locked, and having high cards adjacent)
Then repeat it for every move.

Even if the random event cannot be foreseen, there are not a lot of possibilities for something happening randomly.
On every empty Tile either a '2' or a '4' (If I saw that right) can spawn. That means in the beginning there are only 32 possibilities for something happening. That means you could simply brute force every case there, too.

Also, the more Tiles that are obstructed, the less possibilities there are, making it easier for the brute force algorithm in late game Wink

See my:
    My development Blog:     | Or look at my RPG | Or simply my coding
http://matheusdev.tumblr.comRuins of Revenge  |      On Github
Offline BurntPizza

« JGO Bitwise Duke »


Medals: 291
Exp: 5 years



« Reply #31 - Posted 2014-03-17 00:27:01 »

Very cool and impressive thread on SO about this I just found: http://stackoverflow.com/questions/22342854/what-is-the-optimal-algorithm-for-the-game-2048
Online matheus23

JGO Kernel


Medals: 114
Projects: 3


You think about my Avatar right now!


« Reply #32 - Posted 2014-03-27 17:36:44 »

Wohooo! Can I join the club now? Grin


See my:
    My development Blog:     | Or look at my RPG | Or simply my coding
http://matheusdev.tumblr.comRuins of Revenge  |      On Github
Games published by our own members! Check 'em out!
Legends of Yore - The Casual Retro Roguelike
Offline Favorlock

Junior Newbie


Exp: 2 years



« Reply #33 - Posted 2014-06-24 10:35:59 »

The trick is to keep larger numbers in the bottom right or bottom left corner. Ultimately you should limit movement to left, right, and down. This is how I managed to get a decent score of 17,000 points. Smiley
Online matheus23

JGO Kernel


Medals: 114
Projects: 3


You think about my Avatar right now!


« Reply #34 - Posted 2014-06-24 18:28:00 »

The trick is to keep larger numbers in the bottom right or bottom left corner. Ultimately you should limit movement to left, right, and down. This is how I managed to get a decent score of 17,000 points. Smiley

Well. Time progressed. Your strategy is pretty much the same as ours. The 2048 has found that out a long time ago already, but it's fun to see people find out the strategy themselves Smiley

I myself have now a highscore of 55k+, but I know someone of our school has a highscore of 550k+, which is pretty much insane.

See my:
    My development Blog:     | Or look at my RPG | Or simply my coding
http://matheusdev.tumblr.comRuins of Revenge  |      On Github
Offline PocketCrafter7
« Reply #35 - Posted 2014-06-24 19:04:47 »

My score is around 75k. I was about to make 8192 tile. And then I messed -_-

Nothing is difficult in this world. It is just how you look at it.
Offline Seiya02

JGO Coder


Medals: 3
Projects: 4
Exp: 5 years


No Text Here :x


« Reply #36 - Posted 2014-06-24 21:26:44 »

i wanna join this Post Cheesy



-took long but i guess it isn't the same with undo button  Emo
Pages: 1 [2]
  ignore  |  Print  
 
 
You cannot reply to this message, because it is very, very old.

 

Add your game by posting it in the WIP section,
or publish it in Showcase.

The first screenshot will be displayed as a thumbnail.

rwatson462 (37 views)
2014-12-15 09:26:44

Mr.CodeIt (31 views)
2014-12-14 19:50:38

BurntPizza (62 views)
2014-12-09 22:41:13

BurntPizza (99 views)
2014-12-08 04:46:31

JscottyBieshaar (59 views)
2014-12-05 12:39:02

SHC (74 views)
2014-12-03 16:27:13

CopyableCougar4 (77 views)
2014-11-29 21:32:03

toopeicgaming1999 (138 views)
2014-11-26 15:22:04

toopeicgaming1999 (127 views)
2014-11-26 15:20:36

toopeicgaming1999 (38 views)
2014-11-26 15:20:08
Resources for WIP games
by kpars
2014-12-18 10:26:14

Understanding relations between setOrigin, setScale and setPosition in libGdx
by mbabuskov
2014-10-09 22:35:00

Definite guide to supporting multiple device resolutions on Android (2014)
by mbabuskov
2014-10-02 22:36:02

List of Learning Resources
by Longor1996
2014-08-16 10:40:00

List of Learning Resources
by SilverTiger
2014-08-05 19:33:27

Resources for WIP games
by CogWheelz
2014-08-01 16:20:17

Resources for WIP games
by CogWheelz
2014-08-01 16:19:50

List of Learning Resources
by SilverTiger
2014-07-31 16:29:50
java-gaming.org is not responsible for the content posted by its members, including references to external websites, and other references that may or may not have a relation with our primarily gaming and game production oriented community. inquiries and complaints can be sent via email to the info‑account of the company managing the website of java‑gaming.org
Powered by MySQL Powered by PHP Powered by SMF 1.1.18 | SMF © 2013, Simple Machines | Managed by Enhanced Four Valid XHTML 1.0! Valid CSS!