/Tic-tac-toe-game

I implemented a well know strategy game using Python.Tic-tac-toe (American English), noughts and crosses (Commonwealth English), or Xs and Os (Irish English) is a paper-and-pencil game for two players who take turns marking the spaces in a three-by-three grid with X or O.

Primary LanguagePython

Tic-tac-toe game:

I implemented a well know strategy game using Python.Tic-tac-toe (American English), noughts and crosses (Commonwealth English), or Xs and Os (Irish English) is a paper-and-pencil game for two players who take turns marking the spaces in a three-by-three grid with X or O. The player who succeeds in placing three of their marks in a horizontal, vertical, or diagonal row is the winner. It is a solved game, with a forced draw assuming best play from both players.




How to run it

[1] The program will be downloaded first by clicking on the green "Code" button and selecting "Downlad as ZIP" or you can copy the source code directly from the ** main.py ** file to an IDE (such as ** PyCharm **) or text editor (such as ** Visual Studio Code **; in this case, you will need to install extensions that allow Python code to run). Or you can clone it.

Demo - How it works

image image
image