AIDRI / reinforcement_learning_rock_paper_scissor

a simple rl algorith to play rps

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

reinforcement learning project for rock paper scissors (Discord bot)

Run

  1. Download the project.
  2. Open a terminal.
  3. Write the command to run the discord bot.
  4. Write the command to run the AI file.
  5. Go to your Discord servor, and enjoy.

Files description

discord adaptator : a python script to launch a Discord bot.
genetic_reinforcement_lvup : a python script to launch the script who can input an answer (input) and output a response, he use genetic reinforcement to do that.
utils_grl : a python script with differents strategies to counter the opponent.
input.txt : a text file : he has the discord player move and transmit it to genetic_reinforcement_lvup.
response.txt : a text file : he has the AI move (from genetic_reinforcement_lvup) and transmit it to the discord script to print it in the Discord app.

Adrien I.

About

a simple rl algorith to play rps

License:BSD 3-Clause "New" or "Revised" License


Languages

Language:Python 100.0%