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.
- 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.
To run the game on your local machine, follow these steps:
- Clone the repository:
git clone https://github.com/rsayyed591/tictacToe.git
- Navigate to the project directory:
cd tictactoe
- Install dependencies:
npm install
- Run the project:
npm start
- Scan the QR code using the Expo Go app on your mobile device to open the game.
- React Native
- React Navigation
- React Native Paper
- Enter the names of both players in the provided input fields.
- Click the "Start Game" button to begin the game.
- Players take turns to click on the squares to make their moves.
- The game automatically detects the winner or declares a draw.
- Click the "Restart Game" button to play again.
Enjoy playing Tic Tac Toe with your friends!
This project was created by [Rehan Sayyed]. Feel free to contribute or report issues on the GitHub repository.