Git Product home page Git Product logo

ai-race's Introduction

AI-Race

Exploring for how to use AI to play the Nintendo's(NES) classic game F1 race.

demo

demo

Although the project is under working, you can collect data using these scripts and train a CNN model to play the game.

These scripts were build on Mac but hope they will work on Windows and Linux too.

I used OpenEmu to emulate the game on Mac, but, you can try it in you browser too here http://www.nintendoemulator.com/nes/4099.

For testing the gameplay i did used the browser as OpenEmu didn't allowed keyboard inputs from the script for gameplay.

Using this you can take screenshots of your screen with sync to your keyboard keys pressed simultaneously. Change monitor in the file to specify the screen capture area.

The data captured is now processed and the labels are converted into one-hot encoding. The images are cropped appropriately and resized and saved.

Contains different CNN models to try for training.

The training of the model is done here. The code is self explanatory.

Script for the model to play the game.

ai-race's People

Contributors

adesgautam 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.