Skip to content
This repository has been archived by the owner on Oct 20, 2020. It is now read-only.

drjinying/2048-AI-Interface

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

#2048 AI Interface

This code is modified to provide developers an interface to implement your own AI algorithms.

You can access the current grid layout and set the next move by working on js/ai.js.

Currently, a randomlized AI is provided as a sample.

From Original Author:

A small clone of 1024, based on Saming's 2048 (also a clone).

Made just for fun. Play it here!

Contributions

Many thanks to rayhaanj, Mechazawa, grant, remram44 and ghoullier for the many other good contributions.

Screenshot

Screenshot

That screenshot is fake, by the way. I never reached 2048 😄

Contributing

Changes and improvements are more than welcome! Feel free to fork and open a pull request. Please make your changes in a specific branch and request to pull into master! If you can, please make sure the game fully works before sending the PR, as that will help speed up the process.

You can find the same information in the contributing guide.

License

2048 is licensed under the MIT license.

Donations

I made this in my spare time, and it's hosted on GitHub (which means I don't have any hosting costs), but if you enjoyed the game and feel like buying me coffee, you can donate at my BTC address: 1Ec6onfsQmoP9kkL3zkpB6c5sA4PVcXU2i. Thank you very much!

About

2048 game, now with an interface for AI algorithms

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • CSS 52.0%
  • JavaScript 40.2%
  • HTML 7.3%
  • Ruby 0.5%