GithubHelp home page GithubHelp logo

wangliangtrue / flappybirdrl Goto Github PK

View Code? Open in Web Editor NEW

This project forked from sarvagyavaish/flappybirdrl

0.0 2.0 0.0 39.13 MB

Flappy Bird hack using Reinforcement Learning

Home Page: http://SarvagyaVaish.github.io/FlappyBirdRL

Shell 0.45% JavaScript 99.00% HTML 0.40% CSS 0.15%

flappybirdrl's Introduction

FlappyBirdRL

Flappy Bird hack using Reinforcement Learning

You can view a summary of the game and the algorithm here! http://SarvagyaVaish.github.io/FlappyBirdRL

Running the code yourself

  • Download the code and unzip it

  • Open a terminal and navigate to the folder

    cd ~/Downloads/FlappyBirdRL-master

  • Start a simple server using python

    python -m SimpleHTTPServer 8000

    More details here.

  • In a browser navigate to the local server's address (default is 0.0.0.:8000)

Troubleshooting

  • Did you start a server?

If you just opened the index.html page you might have an error in the console regarding origin requests. Right click anywhere on the screen, click Inspect and then look at the Console.

Does it have the following error? Example screenshot

Failed to load file:///Users/.../res/flappyAtlas/atlas.txt: Cross origin requests are only supported for protocol schemes: http, data, chrome, chrome-extension, https."

The issue: The page tries to load a file from disk but most modern browsers block that as a security risk.

Solution: Run a local server. Use the instructions above to start a server locally in 2 minutes.

flappybirdrl's People

Contributors

sarvagyavaish avatar syriamanal avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.