sachag678 / freeCodeCamp

Contains code for teaching an agent the rules of Rock Paper Scissors

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

RPS RL with TFJS

Blog post

https://medium.com/@truble678/a-beginners-guide-to-reinforcement-learning-using-rock-paper-scissors-and-tensorflow-js-37d42b6197b5#2407-f3a39557268d

Project description

This code contains a very basic introduction to Reinforcement learning using TFJS. The goal is for this to be interactive:

  • where the player will choose rock, paper or scizzors.
  • then the agent will choose what it thinks is the best action
  • then the player will tell the agent if it did bady or poorly
  • the agent will then update its ideas on which actions are good and bad

The choice of actions are visualied using plotly.js and we can see them change over time.

How to run

open index.html in a browser

About

Contains code for teaching an agent the rules of Rock Paper Scissors


Languages

Language:JavaScript 57.2%Language:HTML 42.8%