Skip to content

Classic TicTacToe game made using pygame module in python

Notifications You must be signed in to change notification settings

Abdul-Muizz545/TicTacToe

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 

Repository files navigation

TicTacToe

Clone of the classic tic-tac-toe game made using pygame module. This game is meant as a one player game against your computer.

How to play

To start off, player clicks on a cell to place their "X". Then, the computer makes a random choice and places the "O" there. This repeats until either the player wins, computer wins or it is a tie.

game.py file explanation

It has functions to do the following:

  • Handle drawing the board, the "X" and the "O".
  • Check if a row, column or diagonal has been filled and by who (player or computer).
  • Check to see if it was a tie
  • Display the winning screen at the end which will show different text depending on the winner.

About

Classic TicTacToe game made using pygame module in python

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages