This is a 2048-playing program for educational purposes. Currently it implements:
- the minimax algorithm
- alpha-beta pruning
It plays a simulated-randomized opponent and draws colorized board on your console.
Work-in-progress:
- re-inforcment learning
- play agains a GUI-program (gnome-2048)
Required:
- Go >= 1.17
- Terminal emulator with colors
Go libraries:
- none
Optional:
- Playing against GUI requires libX11.
Build with go:
go build -o 2048 main.go
Run ./2048
to start the engine with default parameters or run ./2048 -help
for available options.