Tic-Tac-Toe (X-O)
Tic-Tac-Toe (X-O) is a simple game created with Python using Jupyter Notebook.😁
This is a game which requires 2-players, so to have more fun join someone.
Follow these little steps to enjoy the Tic-Tac-Toe (X-O) game. Hurray!🎉
- Make sure you’ve Git, Python 3, Ananconda Navigator, and Jupyter Notebook installed on your PC.
- Clone this repository on your Desktop. To do so, you can right-click on your Desktop and then click on
Git Bash Here
to open Git Bash or typecmd
in your windows search bar to open your command prompt and then change the directory path to Desktop by enteringcd Desktop
command. Then, entergit clone https://github.com/paurav11/Tic-Tac-Toe.git
to clone everything on this repository to your Desktop. - After that, open
Tic-Tac-Toe
folder on your Desktop. Now, click on the address bar at the top of your folder window and typecmd
to open Tic-Tac-Toe directory path in your command prompt. Then, typeJupyter Notebook
in your command prompt to launch Jupyter Notebook with the Tic-Tac-Toe game folder. - Click on the
Tic-Tac-Toe-(X-O)_Game.ipynb
file to open your Tic-Tac-Toe (X-O) game. To start the game, you’ve to click on theCell
option in your Jupyter Notebook menubar and then click onRun All
to begin with your game. - Follow the sequence of instructions displayed at the start of the game by entering your inputs correctly and enjoy the game!!
Above image shows the Tic-Tac-Toe gameboard with number layout. Enter Y
to start the game.
Here you’ve have to enter your names and your respective choices for X - O.
As per the available cell positions, you can enter any number between (1-9) to lock your choice everytime it prompts, which will eventually end up with someone winning or losing the game or a draw between the 2 players.
Hope you liked it. Thank you!😊
PS: Linux users have to open Terminal
instead of Command Prompt
.