nabeelraza-7 / tic_tak_to_game_python

This repo is under hacktoberfest under this repo we work on this game so guys lets get started..

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

๐ŸŽฎ Tic-Tac-Toe-Game-Python

We are going to created a tic tac toe game using python

Tic-tac-toe is a very popular game, so this game is implemented using Python. So, the best and the most fun way to learn any programming language for me has always been by developing a fun project like a simple game or some project that I would use in my daily life.

Out Put

  - | - | -

  - | - | -

  - | - | -

X's turn.

Choose a position from 1-9: 1

  X | - | -
  
  - | - | -

  - | - | -

O's turn.

Choose a position from 1-9: 2

  X | O | -

  - | - | -

  - | - | -

X's turn.

Choose a position from 1-9: 5

  X | O | -

  -| X | -

  -| - | -

O's turn.

Choose a position from 1-9: 5

You cant go there. Go again.

Invalid input. Choose a position from 1-9: 4

 X | O | -

 O | X | -

 - | - | -

X's turn.

Choose a position from 1-9: 9

 X | O | -
 
 O | X | -
 
 - | - | X

X Won.

How To Clone This Repo

Step: 1

Open Terminal and type command

git clone https://github.com/nabeelraza-7/tic_tak_to_game_python


Step: 2

Write following lines in the terminal

cd tic_tak_to_game_python

Open Folder any IDE in that folder (if the terminal is not of any IDE)



๐Ÿš€ Tech use

  • Python
  • tkinter
  • PyQt5

About

This repo is under hacktoberfest under this repo we work on this game so guys lets get started..


Languages

Language:Python 100.0%