Skip to content
Projects

JoshVarty/AlphaZeroSimple

View on GitHub

About

The most basic example of AlphaZero and Monte Carlo Tree Search I could come up with.

Other Projects

How these counts are measured

Measured star growth

in 24h
0
in 7 days
0
in 15 days
0
in 1 month
Collecting history

Net star changes over overlapping periods, not daily totals. Missing measurements are left blank. Stars measure attention, not software quality.

README.md

Original

AlphaZeroSimple

Blog: http://joshvarty.github.io/AlphaZero/

Video: https://www.youtube.com/watch?v=62nq4Zsn8vc

The absolute most basic example of AlphaZero and Monte Carlo Tree Search I could come up with. This implementation plays a game called Connect2:

In Connect2 players alternate between playing pieces on a tiny 1x4 board with the goal of placing two of their pieces side-by-side. It’s comically easy to win as the first player, but Connect2 still has the interesting property that either player technically has the chance to win, lose or draw.

Dependencies

  • PyTorch
  • kaggle_environments (Optional: Allows you to play against the model)

Based On:

Explore related projects

Loading…