Skip to content

eyu24/tic-tac-toe-with-AI

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 

Repository files navigation

Tic Tac Toe Game in Python This is a simple implementation of the classic Tic Tac Toe game in Python. The game allows a player to play against the computer, with the computer making intelligent moves.

How to Play

  1. Run the Python script.
  2. The game will display an empty Tic Tac Toe board.
  3. Enter the position (1-9) where you want to place your 'X'.
  4. The computer will make its move and place an 'O'.
  5. Continue taking turns until one player wins or the board is full.

Game Rules

-> The player who succeeds in placing three of their marks in a horizontal, vertical, or diagonal row wins the game.

-> If the board is full and no player has achieved a winning condition, the game is a tie.

Running the Game

To run the game, execute the Python script. The game will continue to ask if you want to play again after each round.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages