Skip to content

Latest commit

 

History

History
17 lines (9 loc) · 827 Bytes

README.md

File metadata and controls

17 lines (9 loc) · 827 Bytes

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!