Amazing-Python-Scripts

Форк
0

README.md

Tic Tac Toe

How To Play

  1. The game is played on a grid that's 3 squares by 3 squares.
  2. You are X, your friend (or the computer in this case) is O.
  3. Players take turns putting their marks in empty squares.
  4. The first player to get 3 of her marks in a row (up, down, across, or diagonally) is the winner.
  5. When all 9 squares are full, the game is over.

How The Game Works

  1. Our Tic Tac Toe is programmed in other to allow two users or players to play the game in the same time.
  2. It is GUI game & gives an instant alert when players wins or losses or draw the game basically tells us to restart.

Details

Libraries Required

LibraryCommand To InstallDocumentation
Pygamepip install pygamehttps://pypi.org/project/pygame/
Syspip install os-syshttps://pypi.org/project/os-sys/

Steps Required To Make This Awesome Game Live:

  • First of all, create a folder named any in your PC & drag it to your code editor.
  • Secondly, open your command prompt(CMD) & install the Pygame package by typing pip install pygame command and os-sys package by typing pip install os-sys .(I used windows10 OS)
  • Thirdly, make a file called TicTacToeGame.py . It will you to store all your code needed for the game.
  • Set your codes which are given below to your respective files.
  • Lastly just run this code and enjoy the game.

How It Will Look

download

Author : Lakhan Kumawat

Использование cookies

Мы используем файлы cookie в соответствии с Политикой конфиденциальности и Политикой использования cookies.

Нажимая кнопку «Принимаю», Вы даете АО «СберТех» согласие на обработку Ваших персональных данных в целях совершенствования нашего веб-сайта и Сервиса GitVerse, а также повышения удобства их использования.

Запретить использование cookies Вы можете самостоятельно в настройках Вашего браузера.