Skip to content

pyserve/TicTacToe

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 

Repository files navigation

TicTacToe

TicTacToe Game Have a class named TicTacToe with four main helper methods that realize the game.

  1. initialize() --> basically, initializes the overall game. Initial visual board for playing game and calls play_turn()
  2. play_turn() --> it helps to take input from user during user's turn and randomly select the choice during computer's turn
  3. update_display() --> it is called every time user plays thier turn and computer automatically play it's turn.
  4. game_over() --> this methods helps to check the conditions if the game is over or not. it determines whether the game is won by user or by computer or it was draw.

image

Releases

No releases published

Packages

No packages published

Languages