Skip to content

This project utilizes reinforcement learning with non-linear function approximation to play the game 2048.

Notifications You must be signed in to change notification settings

michaelbaluja/rl-2048

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 

Repository files navigation

Reinforcement Learning for 2048

This project utilizes reinforcement learning techniques with neural network-based non-linear function approximation to play the game 2048.

Installing

To install, clone git repository or download compressed file & unpack in your desired development environment.

git clone https://github.com/michaelbaluja/rl-2048.git

Running

To run the code for this repository, the main.ipynb notebook has been added with all necessary imports to run.

  1. Open the main.ipynb notebook
  2. Run the import cell
  3. (Optionally) Run the warning ignore cell
  4. 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.

About

This project utilizes reinforcement learning with non-linear function approximation to play the game 2048.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published