Skip to content

Using Q learning, a type of Reinforcement Learning to make a simple GameBot.

Notifications You must be signed in to change notification settings

aalind0/RL-Game-Bot

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

RL-Game-Bot

Using Q learning, a type of Reinforcement Learning to make a simple GameBot.


##Overview

This bot is an example of a type of reinforcement learning called Q learning.

● Rules: The agent (yellow box) has to reach one of the goals to end the game (green or red cell). The black cells are the obstacles and the gray cells are hills.
● Rewards: Each step gives a negative reward of -0.04. The red cell gives a negative reward of -1. The green one gives a positive reward of +1.
● States: Each cell is a state the agent can be.
● Actions: There are only 4 actions. Up, Down, Right, Left.

Here is the screenshot of the game -

Alt text

##Dependencies

None! Native Python

##Usage

Run python Learner.py in terminal to see the bot in action. It'll find the optimal strategy pretty fast (like in 15 seconds).

About

Using Q learning, a type of Reinforcement Learning to make a simple GameBot.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages