Skip to content

rolyatmax/FlappyBirdRL

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

FlappyBirdRL

Flappy Bird hack using Reinforcement Learning


Trying to get several browsers to contribute to and draw from a single "master" Q-matrix on a local server.

Backup data is being stored in data.txt for now so the model isn't completely lost when the process restarts.

The server generates this backup every 15 seconds or so.

Each browser submits a set of changes to its own Q-matrix every 10 seconds. The server, in return, sends back a new copy of the Q-matrix to the browser with which it replaces its own.

The further apart these updates are, the more likely the browsers' submitted changes will clober each other. However, more frequent ajax requests can cause all my browser tabs to become sluggish. This, obviously, wouldn't be as much of a problem for multiple contributing machines.

Clone this baby, npm install if you need to, and point your browser to localhost:8080.

Note: data.txt holds the information for my trained model. Feel free to replace it with an empty data.txt to start training your own model!

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 99.9%
  • CSS 0.1%