Skip to content

shaiMatz/TicTacToeGame

Repository files navigation

Tic Tac Toe

This project is a Tic Tac Toe game developed with React Native. It allows two players to play the classic game of Tic Tac Toe on the same device, switching turns between "X" and "O". The game detects a win or a draw and displays a message with the outcome, offering a "Play Again" button to restart the game.

Features

  • Two-player gameplay on the same device.
  • Custom images for "X" and "O".
  • Win and draw detection with an inline modal announcement.
  • "Play Again" functionality to restart the game.

Installation

To run this project locally, follow these steps:

Clone the repository to your local machine:

git clone https://github.com/shaiMatz/TicTacToeGame.git

Navigate to the project directory:

cd TicTacToeGame

Install the dependencies:

npm install

Run the app in development mode:

npm start

This will start the React Native Metro Bundler. You can then run the app on an emulator or a physical device.

Usage

The game interface presents a Tic Tac Toe board. Players take turns tapping on the board to place their "X" or "O". The game automatically detects a win or a draw and displays an announcement modal. Use the "Play Again" button to start a new game.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors