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.
- 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.
To run this project locally, follow these steps:
Clone the repository to your local machine:
git clone https://github.com/shaiMatz/TicTacToeGame.gitNavigate to the project directory:
cd TicTacToeGameInstall the dependencies:
npm installRun the app in development mode:
npm startThis will start the React Native Metro Bundler. You can then run the app on an emulator or a physical device.
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.