Skip to content

A simple TIC-TAC-TOE agent built using RL(value iteration with minmax style opponent simulation)

Notifications You must be signed in to change notification settings

SilentCanary/RL

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 

Repository files navigation

RL

Tic Tac Toe with Reinforcement Learning (Value Iteration)

This is a simple Tic Tac Toe game built using C++ and SFML for the GUI.
It includes a basic AI agent trained using Reinforcement Learning (Value Iteration).

  • The AI learns optimal moves by simulating all possible game states.
  • It assumes the opponent plays optimally (minimax-style reasoning).
  • For its first move, the AI follows an epsilon-greedy strategy to add some randomness.

How to Play

  • Run the executable
  • Click to place your move (you play as 'O', AI plays as 'X')
  • Press R to restart the game after it's over

Requirements

  • SFML library (used for graphics and input)
  • C++ compiler (e.g., g++, Visual Studio)

About

A simple TIC-TAC-TOE agent built using RL(value iteration with minmax style opponent simulation)

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages