Welcome to the Tic Tac Toe Game App, an interactive two-player game designed for Android. This app allows players to take turns placing their symbols (X or O) on a 3x3 grid, aiming to form a horizontal, vertical, or diagonal line of three of their symbols to win the game. Additionally, the app includes a reset option, allowing users to start a new game at any time.
- Turn-based Play: Two players can take turns placing their symbols (X or O) on the game board.
- Automatic Detection: The game automatically detects when a player forms a line of three symbols, be it horizontally, vertically, or diagonally, and declares them as the winner.
- Start a New Game: Users can reset the game board at any time to start a fresh round.
Follow these steps to install and run the Tic Tac Toe Game App on your Android device or emulator:
-
Clone the Repository:
git clone https://github.com/kamatchi-somesh/PRODIGY_AD_04.git
-
Open in Android Studio: Open the project in Android Studio for development and customization.
-
Build and Run: Build and run the application using the Android emulator or an Android device.
-
Open the App: Open the app on an Android emulator or device.
-
Two-player Gameplay:
- Players take turns tapping on an empty cell in the 3x3 grid to place their symbol (X or O).
-
Winning Conditions:
- The game automatically detects winning conditions when a player forms a line of three symbols (horizontal, vertical, or diagonal) and declares the winner.
-
Reset the Game:
- Use the reset option to clear the game board and start a new round.