Skip to content

TicTacToe implementation in Python. There are two implementations: A) Automated Tic Tac Toe File B) Normal multiplayer Tic Tac Toe File

Notifications You must be signed in to change notification settings

ruchi961/TicTacToe

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 

Repository files navigation

🟢 TicTacToe

  • TicTacToe implementation in Python.

  • There are two implementations.

    • Automated Tic Tac Toe
      File: automated_tic_tac_toe.py
      Description:
      Player 1 is user and Player 2 is computer which randomly predicts a position, not yet filled. The computer predicts the position intelligently following a stratergy to win by keeping an eye on the opponents action and future startergies to win and performs an action i.e. draws o or x on that position or any other position with with the user might win in the future or the next moves. The tic tac toe is printed on the python shell. Proper validation of input is done.

    • Normal, Multiplayer Tic Tac Toe
      File: tic_tac_toe.py
      Description:
      Player 1 is user and Player 2 is another user. Match between the two users with proper vaidation is done. The tic tac toe is printed on the python shell.

> Information

  • Language:

  • Date Created : August 2021

> Output

Output_TICTACTOE.doc : contains the output images of both the codes.

> Download and run in Python (IDLE) :

  • Run -> Run Module