Skip to content

Python implementation of Tic-Tac-Toe game alongside a Hidden Markov Model-based AI

License

Notifications You must be signed in to change notification settings

sbugallo/TicTacToe-HMM

Repository files navigation

Tic-Tac-Toe AI - Hidden Markov Model

CodeFactor Build Status Coverage Status

Game description

"Tic-tac-toe (American English), noughts and crosses (British English), or Xs and Os is a paper-and-pencil game for two players, X and O, who take turns marking the spaces in a 3×3 grid. The player who succeeds in placing three of their marks in a horizontal, vertical, or diagonal row wins the game."

-- Wikipedia

Installation usage

See documentation.

A docker image is available at https://hub.docker.com/r/sbugallo/ttt. Simply run docker run -ti sbugallo/ttt and then

ttt-human-vs-cpu \
--cpu_weights_path pretrained_models/25000_15000_10000_weights.json \
--cpu_mode best