Neural Network Based Tic Tac Toe
Simple Tic Tac Toe Game Implementation, With Simple Neural Network
Author :
Suraj Singh Bisht
surajsinghbisht054@gmail.com
www.bitforestinfo.com
Description
Simple Tic Tac Toy Game Implentation In Python. Basically, In This Project, I Tried To Develop Simple But Little Bit Unpredictable Tic Tac Toe Game Player Where user can Play This Game With Trained Computer Neural Network Based Program. Well, Here Computer Side I'm Going To Deploy A Trained Neural network that will play the game with user with little bit of unpredictable choices.
Key Points To Understand This Project
- Using PyBrain To Implement FeedForward Neural Network
- Generate All Possible Situations Of Tic Tac Toe Game
- Filter Best Fit Data from Possibilities
- Filter Only Wining and Draw Possibilities
- Trained Neural network With Randomness
- Then, play game with this.
how to run it
git clone https://github.com/surajsinghbisht054/neural-network-tic-tac-toe
cd neural-network-tic-tac-toe
cd src
python generate_dataset.py
python ann.py # <-- Run This Script, More Than Once to decrease error Rate
cd ..
python main.py
Note
I'm also new in this subject So, Please Forgive me if I'm doing anything wrong and If You find that I'm doing anything wrong anywhere in this project. Please Feel Free To Correct me.
Want To Contribute
Development.
Want to Contribute? Great!
There Are 2 Methods.
-
Pull Request ( Github Account Required ).
-
Through Email.
1. Pull Request ( Github A/c Required ).
-
Fork it!
-
Create your feature branch:
git checkout -b my-new-feature
-
Commit your changes:
git commit -am 'Add some feature'
-
Push to the branch:
git push origin my-new-feature
-
Submit a pull request :D
2. Through Email.
- Send Your Updated Version On My Email.
License
Apache License