Skip to content

A RL agent that learns to play tic-tac-toe by playing against itself.

License

Notifications You must be signed in to change notification settings

sparsh2/tic-tac-toe-RL

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

tic-tac-toe-RL

This is a simple demonstration of how an RL agent can learn to play tic-tac-toe by playing against itself and updating its knowledge table using Temporal-Difference method.

This is inspired from the example provided in the introduction of the book Reinforcement Learning, second edition: An Introduction

How to play against the agent?

Run go run main.go from root. Additionally set number of training episodes in main.go to get the desired strength of the agent. By 10,000 training episodes, the agent plays optimally.

About

A RL agent that learns to play tic-tac-toe by playing against itself.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages