Skip to content

amith0206/Tic-Tac-Toe

Repository files navigation

Tic Tac Toe

A simple Tic Tac Toe game built with Flutter.

Description

Tic Tac Toe is a classic game where two players take turns marking spaces in a 3x3 grid. The goal is to be the first to form a horizontal, vertical, or diagonal line of three symbols (X or O). This Flutter application allows you to play Tic Tac Toe on your mobile device.

The game includes a home screen with the game board and a button to reset the game. When a player wins, a new screen is displayed showing the result.

Features

  • Interactive game board with touch input.
  • You can choose between the player (X or O) and start playing.
  • Automatic detection of winning combinations.
  • Reset button to start a new game.

Installation

  1. Install Flutter and set up your development environment. Flutter Installation Guide

  2. Clone this repository to your local machine: https://github.com/amith0206/Tic-Tac-Toe

  3. Change into the project directory:
    cd tic_tac_toe

  4. Run the app on a connected device or simulator:
    flutter run

Demo

Usage

  1. Launch the app on your device or simulator.

  2. The game board will be displayed, showing a 3x3 grid.

  3. Players take turns tapping on an empty cell to mark it with their symbol (X or O).

  4. The game automatically detects winning combinations and displays a result screen when a player wins.

  5. To start a new game, tap the "Play again" button on the result screen or use the reset button on the home screen.

Contributing

Contributions are welcome! If you find any issues or have suggestions for improvements, please open an issue or submit a pull request.

Please follow the existing code style and conventions.

License

This project is licensed under the MIT License.

About

A Tic-Tac-Toe game.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published