This project utilizes reinforcement learning techniques with neural network-based non-linear function approximation to play the game 2048.
To install, clone git repository or download compressed file & unpack in your desired development environment.
git clone https://github.com/michaelbaluja/rl-2048.git
To run the code for this repository, the main.ipynb
notebook has been added with all necessary imports to run.
- Open the
main.ipynb
notebook - Run the import cell
- (Optionally) Run the warning ignore cell
- Run the relevant algorithm chunks (Monte Carlo/SARSA)
Each chunk fully contains the required calls to create and run the agent and plot output. Note that the default calls to the output plotting function saves each plot. This can be turned off by removing the save_file='...'
parameter to the plotter function in each cell.