Tic-Tac-Toe

Tic-Tac-Toe (X-O) is a simple game created with Python using Jupyter Notebook.

View on GitHub

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!🎉

  1. Make sure you’ve Git, Python 3, Ananconda Navigator, and Jupyter Notebook installed on your PC.
  2. 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 type cmd in your windows search bar to open your command prompt and then change the directory path to Desktop by entering cd Desktop command. Then, enter git clone https://github.com/paurav11/Tic-Tac-Toe.git to clone everything on this repository to your Desktop.
  3. After that, open Tic-Tac-Toe folder on your Desktop. Now, click on the address bar at the top of your folder window and type cmd to open Tic-Tac-Toe directory path in your command prompt. Then, type Jupyter Notebook in your command prompt to launch Jupyter Notebook with the Tic-Tac-Toe game folder.
  4. 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 the Cell option in your Jupyter Notebook menubar and then click on Run All to begin with your game.
  5. Follow the sequence of instructions displayed at the start of the game by entering your inputs correctly and enjoy the game!!

tic-tac-toe-1 Above image shows the Tic-Tac-Toe gameboard with number layout. Enter Y to start the game.

tic-tac-toe-2 Here you’ve have to enter your names and your respective choices for X - O.

tic-tac-toe-3 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.