This Tic Tac Toe app is a classic game implemented for Android devices. It allows two players to take turns marking spaces in a 3x3 grid, with the goal of getting three of their marks in a horizontal, vertical, or diagonal row.
For downloading this app visit releases page
- Two-player mode: Play against another human.
- Simple and intuitive UI: Easy to understand and play.
- Restart game option: Quickly restart the game to play again.
- Winner announcement: The app declares the winner at the end of each game.
- Android Studio installed on your computer.
- An Android device or emulator to run the app.
- Clone the repository:
git clone https://github.com/manish7924/Tic-Tac-Toe.git
- Open the project in Android Studio:
- Open Android Studio.
- Click on
Open an existing Android Studio project
. - Navigate to the cloned repository and select it.
- Build and run the project:
- Connect your Android device or start an emulator.
- Click on the
Run
button in Android Studio to build and deploy the app.
- Launch the app on your Android device.
- The game starts with Player 1 (X) taking the first turn.
- Tap on an empty cell in the 3x3 grid to place your mark.
- Players alternate turns until one player gets three marks in a row or all cells are filled.
- The game announces the winner or declares a draw.
- Tap the
Restart
button to start a new game.
- MainActivity.java: Contains the main logic for the game, including handling user interactions and game state.
- activity_main.xml: Defines the layout for the main activity, including the game board and restart button.
- strings.xml: Contains all the text strings used in the app.
- styles.xml: Defines the style and theme for the app.
- Fork the repository.
- Create your feature branch:
git checkout -b feature/YourFeature
- Commit your changes:
git commit -m 'Add some feature'
- Push to the branch:
git push origin feature/YourFeature
- Open a pull request.
This project is licensed under the MIT License - see the LICENSE file for details.