Skip to content

FedericoStra/2048-ai

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

23 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

AI for the 2048 game. This uses expectimax optimization, along with a highly-efficient bitboard representation to search upwards of 10 million moves per second on recent hardware. Heuristics used include bonuses for empty squares and bonuses for placing large values near edges and corners.

Building

Run make. Any relatively recent C++ compiler should be able to build the output.

Running the command-line version

Run bin/2048 if you want to see the AI by itself in action.

Running the browser-control version

Install Remote Control for Firefox.

Open up the 2048 game or any compatible clone and start remote control.

Run 2048.py and watch the game!

About

AI for the 2048 game

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published