Skip to content

yashmitha-pentakota/tic-tac-toe-game

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 

Repository files navigation

tic-tac-toe-game

A simple implementation of the Tic Tac Toe game using Python.

Overview

The Tic Tac Toe project is a command-line based game where two players take turns marking cells in a 3x3 grid. The game provides the following features:

  • Interactive gameplay between two players.
  • Display of the game board after each move.
  • Validation of player moves and detection of win or draw conditions.
  • Option to play again after the game ends.

Installation

To play the Tic Tac Toe game, follow these steps:

  1. Clone the repository: https://github.com/yashmitha-pentakota/tic-tac-toe-task-1
  2. Navigate to the project directory:'cd tic-tac-toe-task-1'
  3. Run the game:python tic_tac_toe.py

Usage

Here's an example of how to play the Tic Tac Toe game: Welcome to Tic Tac Toe!

Player 1: X Player 2: O

Let's start the game!


| | | |

| | | |

| | | |


| | | |

| | | |

| | | X |


| | | |

| | | |

| O | | X |


| | | |

| X | | |

| O | | X |


| | | O |

| X | | |

| O | | X |


| | X | O |

| X | | |

| O | | X |


| | X | O |

| X | O | |

| O | | X |


| | X | O |

| X | O | |

| O | X | X |

Player O wins!

Contributing

Contributions are welcome! Here's how you can contribute to this project:

  1. Fork the project.
  2. Create your feature branch (git checkout -b feature/your-feature).
  3. Commit your changes (git commit -am 'Add your feature').
  4. Push to the branch (git push origin feature/your-feature).
  5. Open a pull request.

Note

You can also open an issue in the GitHub repository.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages