A multi-part project that implements reinforcement learning and Monte Carlo simulations to "teach" a computer to play the game 2048.
See my 1st blog post, which covers my implementation of the game using only numpy.
Relevant notebook, which allows you to play my implementation of 2048 with a rough UI:
+-- Interactive game demo.ipynb
This notebook can be loaded via binder:
See my 2nd blog post, which covers my logical approach to reinforcement learning and details the parameters necessary for using the NeuralNetwork
class in network.py
.
Relevant notebook:
+-- Pytorch results.ipynb
See my 3rd blog post, which covers my implementation of Monte Carlo tree search to play 2048.
Relevant notebook:
+-- Monte Carlo results.ipynb
Software: This project is built in python, relying primarily on pytorch, numpy, and matplotlib.
Author: Paige McKenzie
Date completed: 4/29/2020