Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/rohitdalal0/tic-tac-toe-game-app


https://github.com/rohitdalal0/tic-tac-toe-game-app

multiplayer multiprocessing multithreading thread threading tic-tac-toe tic-tac-toe-ai tic-tac-toe-game tic-tac-toe-python

Last synced: about 16 hours ago
JSON representation

Awesome Lists containing this project

README

        

# Tic tac toe with AI-bot and multithread


# Game options-
* 2-player
* Play with AI of computer


# Game tree:-

![game tree](https://upload.wikimedia.org/wikipedia/commons/d/da/Tic-tac-toe-game-tree.svg)

# Wining logic:-
```
check1 = self.btn1['text'] == self.btn2['text'] == self.btn3['text'] != ''
check2 = self.btn4['text'] == self.btn5['text'] == self.btn6['text'] != ''
check3 = self.btn7['text'] == self.btn8['text'] == self.btn9['text'] != ''

check4 = self.btn1['text'] == self.btn4['text'] == self.btn7['text'] != ''
check5 = self.btn2['text'] == self.btn5['text'] == self.btn8['text'] != ''
check6 = self.btn3['text'] == self.btn6['text'] == self.btn9['text'] != ''

check7 = self.btn1['text'] == self.btn5['text'] == self.btn9['text'] != ''
check8 = self.btn3['text'] == self.btn5['text'] == self.btn7['text'] != ''
```

# To get to know more check out my code.