Coder Social home page Coder Social logo

macroxue / 2048-ai Goto Github PK

View Code? Open in Web Editor NEW
37.0 37.0 10.0 9.36 MB

A strong AI for the popular 2048 game. It reaches the 65536 tile 3% of the time, without undos.

License: GNU General Public License v3.0

C++ 97.31% Makefile 1.02% C 0.54% Shell 1.14%
2048 2048-ai 2048-solver

2048-ai's People

Contributors

macroxue avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

2048-ai's Issues

Increase tuple size

Can I increase tuple table size to get more variants of moves? Now tuple_moves.10a have size 1315mb , tuple_moves.11a have 1215mb. On my machine I can run only small runs by command ./2048 because runs by command ./2048b fully load my ram(8gb) and after that process is killed. For example when I run small runs by command ./2048 -d7 2833 I get a score of 1556664, but in real games, the maximum result that I get from dozens of runs is around 400k. Can I improve my result somehow?

P.s (I use server mode to got right moves for real 2048 game)

I think I know how making 12 space lookup tables can be made easier.

I think if you split the lookup tables into each individual layer by the sum of tiles, you will need much less memory to create the large tables. This could allow 12 space lookup tables with two free rows and columns, which would allow for some much better strategies to appear

Newbie question

Hi,
Im completly new to ubuntu and i was wondering if you could help me.
I dont know what im doing wrong after "building".
How do i find/use the 2048 and 2048b you are talking about ?
Thanks you !

2048

Using my Endgame Table Gen to improve your AI performance

I wrote a Endgame Table Generator that generates DPDF-512 (L3-512) lookup tables in 4 minutes and only takes up 2GB . It can also take more than 10 hours to generate a 12-space lookup table (like LL-2048), which takes up about 200GB of storage under compression. It also provides a variety of 12-space lookup tables that can support more formations(like 444-2048 in about 60 GB playing snake), and free lookup tables to make a dash in the final stage. If your AI can utilize these results, it should be a big boost!
link: https://github.com/game-difficulty/2048EndgameTablebase

Amazing!

Hi MacroXue, I am quite new to ubuntu and using github! I am just wondering if I can setp-up a pre-existing board, and ask the app what's the next best move? If yes which mode should I be using? Is that the AI mode? Thanks

Mode question - answer

Hi, Macroxue. THX for this amazing work. I have question for you. Can i run this script in mode when i send to console command right with massive like this [16,512,2,0,64,256,0,2,16,128,0,0,8,4,0,0] and got best direction? This is very needing function for me.

This is awesome!

To tell the truth, I don't fully understand all those clever words in description, but I used this repository many times to get first place in different games and game bots.

This solution probably the best one among other github repos.

So I just wanted to let you know that there is at least one person who very thankful for your work, best wishes!

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.