GithubHelp home page GithubHelp logo

rsayyed591 / tictactoe Goto Github PK

View Code? Open in Web Editor NEW
0.0 1.0 0.0 418 KB

This is a simple Tic Tac Toe game built using React Native. It allows two players to play against each other on a 3x3 grid. The game features input fields for players' names, a start button to initiate the game, and a restart button to reset the game.

JavaScript 100.00%

tictactoe's Introduction

Tic Tac Toe Game with React Native

This is a simple Tic Tac Toe game built using React Native. It allows two players to play against each other on a 3x3 grid. The game features input fields for players' names, a start button to initiate the game, and a restart button to reset the game.

Features

  • Allows two players to input their names.
  • Displays the game status, including whose turn it is and the winner.
  • Indicates the winning line when a player wins.
  • Provides a restart button to reset the game.

Screenshots

Screenshot 1 Screenshot 2 Screenshot 3 Screenshot 4

Installation

To run the game on your local machine, follow these steps:

  1. Clone the repository:
    git clone https://github.com/rsayyed591/tictacToe.git
    
  2. Navigate to the project directory:
    cd tictactoe
    
  3. Install dependencies:
    npm install
    
  4. Run the project:
    npm start 
    
  5. Scan the QR code using the Expo Go app on your mobile device to open the game.

Technologies Used

  • React Native
  • React Navigation
  • React Native Paper

How to Play

  1. Enter the names of both players in the provided input fields.
  2. Click the "Start Game" button to begin the game.
  3. Players take turns to click on the squares to make their moves.
  4. The game automatically detects the winner or declares a draw.
  5. Click the "Restart Game" button to play again.

Enjoy playing Tic Tac Toe with your friends!

Credits

This project was created by [Rehan Sayyed]. Feel free to contribute or report issues on the GitHub repository.

tictactoe's People

Contributors

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