/Ai-playing-tictactoe

Ai vs human palying Tictactoe,using easyAI module python

Primary LanguagePython

πŸ…°πŸ…Έ πŸ…ΏπŸ…»πŸ…°πŸ†ˆπŸ…ΈπŸ…½πŸ…Ά πŸ†ƒπŸ…ΈπŸ…²πŸ†ƒπŸ…°πŸ…²πŸ†ƒπŸ…ΎπŸ…΄ - πŸ…΄πŸ…°πŸ†‚πŸ†ˆπŸ…°πŸ…Έ

EasyAI is an artificial intelligence framework for two-players abstract games such as Tic Tac Toe, Connect 4, Reversi, etc.

It is written in Python and makes it easy to define the mechanisms of a game and play against the computer or solve the game (see A quick example).

Under the hood, the AI is a Negamax algorithm with alpha-beta pruning and transposition tables as described on Wikipedia. It has been written with clarity/simplicity in mind, rather than speed, so it can be slow, but there are fixes (see How To Make The AI Faster).

easyAI-Owner

πŸ…ΏπŸ†πŸ…΄ πŸ†πŸ…΄πŸ†€πŸ†„πŸ…΄πŸ†‚πŸ†ƒπŸ…ΈπŸ…΄πŸ†‚

Environment Setup

     -:> python 2.8 or above 3.x recommended

install modules

1.easyAI

pip install easyAI

πŸ…·πŸ…ΎπŸ††πŸ†† πŸ†ƒπŸ…Ύ πŸ†πŸ†„πŸ…½

python tictactoe.py

πŸ†‚πŸ…²πŸ†πŸ…΄πŸ…΄πŸ…½πŸ†‚πŸ…·πŸ…ΎπŸ†ƒπŸ†‚

Screenshots