Git Product home page Git Product logo

build_a_game_bot_live's Introduction

Build a Game Bot LIVE

#Overview This is the Game Bot code for the Live Youtube session by @Sirajology. I'm using OpenAI's Gym library to train a bot in the CartPole enviroment to get better over time via reinforcement learning.

#Installation

git clone https://github.com/openai/gym
cd gym
pip install -e . # minimal install

use pip to install the dependencies

#Usage

The simple.py script is the bare minimum example of using OpenAI's Gym library. It will run an instance of the CartPole-v0 enviroment for 1000 timestep, rendering the environment at each step.

python simple.py

The complex.py script is an example of using the hill-climbing algorithm to train our agent in the CartPole-V0 enviroment. We'll start with some randomly chosen initial wieghts and in every episode, add some noise to the weights. We'll keep the new weights if the agent improves.

python simple.py

#Next

You can use the hundreds of different game enviroments that OpenAI provides to train your bot. Make your own algorithm! You can submit them to OpenAI, they've gamified the whole process with high scores. Learn more about Gym here and see this article for more in-depth coverage of these types of algorithms.

build_a_game_bot_live's People

Contributors

llsourcell avatar testbounty avatar

Watchers

James Cloos avatar jkwebcoAI 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.