Sanjana00 / Tic-Tac-Toe-with-Reinforcement-Learning

Implementing MENACE using tabular Q learning algorithm

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Tic Tac Toe with RL

Objective : Training a tic tac toe game with reinforcement learning to improve the AI’s success rate with experience.

Reinforcement learning (RL) is an area of machine learning concerned with how software agents ought to take actions in an environment in order to maximize the notion of cumulative reward. By exploring its environment and exploiting the most rewarding steps, it learns to choose the best action at each stage. We are planning to implement the grid game by iteratively updating Q value function, which is the estimating value of (state, action) pair.

Language: Python and Python modules (pygame, pygame-menu, csv)

Dependencies: Need to install pygame and pygame-menu Python modules in order to run the code.

Usage: Clone the repository and run the tictactoe.py file to play with the agent interactively.

To train the agent first, run

$ python3 tictactoe.py -t

To play interactively, run

$ python3 tictactoe.py

About

Implementing MENACE using tabular Q learning algorithm

License:Other


Languages

Language:Python 100.0%