Skip to content
Machine learning AI learns how to play tic tac toe from scratch
Python JavaScript CSS HTML
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
pickles
static
templates
README.md
application.py
env.py
gamevars.py
requirements.txt
tictactoe.py

README.md

Live Demo

Technologies Used

  • AI Logic: Python 3.4
  • Frontend: Javascript, HTML, and CSS
  • Backend: Python Flask Framework

Temporal Difference Learning

  • Initially, the AI moves randomly unless its next move results in a win.
  • Moves leading to a win will become preferred in the future. Similarly, moves leading to a loss or a tie will be avoided, if possible.
  • The AI will sometimes make an exploratory move. These moves will ignore what has been learned in the previous games in order to explore alternate strategies.
  • Click here for more information on temporal difference learning.
You can’t perform that action at this time.