Giter Club home page Giter Club logo

tic-tac-toe-game's Introduction

Tic Tac Toe

Python

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.

Features

  • 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.

How to Play

  1. Run the game.
  2. Choose the number of players (1 or 2).
  3. Follow the on-screen instructions to make your moves.
  4. Win the game by forming a horizontal, vertical, or diagonal line of your sign (X or O).

Game Rules

  • 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.

Setup

  1. Clone the repository:

    git clone  https://github.com/toster3d/tic-tac-toe-game.git
    cd tic-tac-toe 
  2. Install the required dependencies:

    pip install -r requirements.txt
  3. Run the game:

    python tic_tac_toe-game.py

Contributing

If you would like to contribute to the development of this Tic Tac Toe game, please follow these steps:

  1. Fork the repository.
  2. Create a new branch for your feature or bugfix: git checkout -b feature-name.
  3. Make your changes and commit them: git commit -m 'Add new feature'.
  4. Push to your branch: git push origin feature-name.
  5. Create a pull request.

Contact

tic-tac-toe-game's People

Contributors

toster3d avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.