Welcome to the Tic Tac Toe game implemented in Python! This simple console-based game allows two players to compete against each other in the classic Tic Tac Toe challenge.
Getting Started Prerequisites Make sure you have Python installed on your system. You can download it from python.org.
Installation Clone the repository to your local machine:
bash Copy code git clone https://github.com/Kumaraniketank/TIC-TAC-TOE.git Running the Game Navigate to the project directory and run the following command in your terminal:
bash Copy code python tic_tac_toe.py How to Play The game is played on a 3x3 grid. Two players take turns marking an empty cell with their respective symbols - 'X' or 'O'. The player who succeeds in placing three of their marks in a horizontal, vertical, or diagonal row is the winner. If the grid is filled and no player has won, the game ends in a draw. Features Player input validation: Only valid moves are accepted. Clear and intuitive console interface. Interactive and engaging gameplay. Code Structure The code is organized into a few main components:
tic_tac_toe.py: Contains the main game logic and user interface. board.py: Defines the Board class responsible for managing the game board. player.py: Defines the Player class, which represents a player in the game. Feel free to explore and modify the code to enhance or customize the game as you like!
Contributing If you have any ideas for improvements, bug fixes, or new features, please open an issue or submit a pull request. Contributions are welcome!