Welcome to the Tic Tac Toe game! This simple console-based game allows you to play Tic Tac Toe against a friend or an AI opponent.
- Play against a friend in two-player mode.
- Challenge the AI in one-player mode.
- Enjoy a classic game of Tic Tac Toe with a simple and intuitive interface.
- Run the game.
- Choose the number of players (1 or 2).
- Follow the on-screen instructions to make your moves.
- Win the game by forming a horizontal, vertical, or diagonal line of your sign (X or O).
- The game is played on a 3x3 grid.
- Players take turns to place their sign (X or O) on an empty square.
- The player who forms a line of three of their signs wins the game.
- If the board is full and no player has formed a line, the game ends in a tie.
-
Clone the repository:
git clone https://github.com/toster3d/tic-tac-toe-game.git cd tic-tac-toe
-
Install the required dependencies:
pip install -r requirements.txt
-
Run the game:
python tic_tac_toe-game.py
If you would like to contribute to the development of this Tic Tac Toe game, please follow these steps:
- Fork the repository.
- Create a new branch for your feature or bugfix: git checkout -b feature-name.
- Make your changes and commit them: git commit -m 'Add new feature'.
- Push to your branch: git push origin feature-name.
- Create a pull request.
- Author: Jagoda Spychała
- E-mail: [email protected]