Skip to content

cmirnow/Tic-Tac-Toe-AI-with-Neural-Network-Resurrections

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

19 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Tic Tac Toe AI with Neural Network. The Resurrections.

Tic Tac Toe AI with Neural Network. The Resurrections.

The script doesn't know how to play Tic Tac Toe. The first launch creates a csv-file of Tic Tac Toe games played by chance. Then, the Neural Network helps AI to find the optimal moves. Can you beat this AI? Good luck to you!

😜 In the new version of the game, you can play against a Neural Network either first or second (this choice is random).

You'll need Ruby.

Ruby-fann has problems with Ruby 3.2 now. Be careful.

How to start playing:

gem install progress_bar tty-pie csv ruby-fann:1.3.2
git clone https://github.com/cmirnow/Tic-Tac-Toe-AI-with-Neural-Network-Resurrections.git
cd Tic-Tac-Toe-AI-with-Neural-Network-Resurrections
ruby start.rb

Tic Tac Toe AI with Neural Network. The Resurrections.

Article on Medium.com