An simple AI for the 2048 game.
Switch branches/tags
Nothing to show
Clone or download
Latest commit 0b4dcbf Nov 20, 2017
Permalink
Failed to load latest commit information.
2048 Update README.md Oct 24, 2017
ai Add comments Nov 20, 2017
grid Select depth by grid max value Oct 22, 2017
screenshot Update README.md Oct 24, 2017
utils Init commit Oct 19, 2017
vendor Add vendor Oct 22, 2017
.gitattributes Add .gitattributes file Oct 27, 2017
.gitignore Merge .gitignore file Oct 22, 2017
.travis.yml travis: update go versions Nov 20, 2017
Dockerfile Add Dockerfile Oct 23, 2017
LICENSE Initial commit Oct 22, 2017
README.md Update README.md Oct 24, 2017
main.go Update output log && remove unused code Oct 26, 2017

README.md

2048-AI

Build Status Go Report Card DUB

AI for the 2048 game, implements by expectimax search, powered by Go.

The web front-ends of 2048 game was forked from gabrielecirulli/2048, respect and gratitude!

Screenshot

How to run?

Via Go

go get github.com/xwjdsh/2048-ai
cd $GOPATH/src/github.com/xwjdsh/2048-ai
go build
./2048-ai

Via Docker

docker run -p 8080:8080 wendellsun/2048-ai

or build images by yourself:

# clone and enter project
docker build -t 2048-ai .
docker run -p 8080:8080 2048-ai

Then, you can access http://localhost:8080/ from the browser.

Related

Licence

MIT License