Giter VIP home page Giter VIP logo

tic_tac_toe's Introduction

Flutter Tic-Tac-Toe ✨

This is a simple Flutter Tic-Tac-Toe game project that allows two players to take turns marking the spaces in a 3x3 grid. The game includes a timer ⏲️ and keeps track of scores for Player X and Player O.

Features 🎮

  • Two-player mode (Player X and Player O).
  • Timer with a 30-second countdown for each turn.
  • Score tracking for Player X and Player O.
  • A result declaration when a player wins or the game ends in a draw.

Getting Started 🚀

Follow these steps to get the Tic-Tac-Toe game up and running on your local machine.

Mockup

Tic_Tac_Toe

Prerequisites 📋

  • Make sure you have Flutter installed on your system.

Installation 🛠️

  1. Clone the repository to your local machine:
  2. Navigate to the project directory:
cd flutter-tic-tac-toe
  1. Run the Flutter app:
flutter run

The Tic-Tac-Toe game should now be running on your device or emulator.

How to Play 🎯

  • Player X starts the game.
  • Players take turns tapping on the empty cells to place their mark (Xor O).
  • The game continues until one player wins by getting three of their marks in a row horizontally, vertically, or diagonally, or until all cells are filled and the game ends in a draw.
  • The timer counts down from 30 seconds for each turn. If a player does not make a move within the time limit, the game moves to the next player's turn automatically.

Acknowledgments 🙌

This project was inspired by the classic game of Tic-Tac-Toe.

Styling 🎨

All files have been elegantly penned down in the flutter_lints style.

tic_tac_toe's People

Contributors

obedrav avatar

Stargazers

Cristhian Jurado (Chrs) 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.