https://github.com/aritrac1/tictactoegame
This is a Tic Tac Toe game built using Kotlin and Jetpack Compose for Android. It supports two game modes - Computer vs User (single-player mode against AI) & Player 1 vs Player 2 (local multiplayer).
https://github.com/aritrac1/tictactoegame
android android-app android-game game game-theory game-theory-algorithms jetpack-android jetpack-compose kotlin kotlin-android minimax-algorithm tic-tac-toe tictactoe tictactoe-game
Last synced: 3 months ago
JSON representation
This is a Tic Tac Toe game built using Kotlin and Jetpack Compose for Android. It supports two game modes - Computer vs User (single-player mode against AI) & Player 1 vs Player 2 (local multiplayer).
- Host: GitHub
- URL: https://github.com/aritrac1/tictactoegame
- Owner: AritraC1
- Created: 2025-02-06T10:45:09.000Z (5 months ago)
- Default Branch: master
- Last Pushed: 2025-02-09T17:33:00.000Z (4 months ago)
- Last Synced: 2025-04-05T09:15:12.026Z (3 months ago)
- Topics: android, android-app, android-game, game, game-theory, game-theory-algorithms, jetpack-android, jetpack-compose, kotlin, kotlin-android, minimax-algorithm, tic-tac-toe, tictactoe, tictactoe-game
- Language: Kotlin
- Homepage:
- Size: 2.4 MB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: Readme.md
Awesome Lists containing this project
README
# Tic-Tac-Toe Game
This is a Tic Tac Toe game built using Kotlin and Jetpack Compose for Android. It supports two game modes:
- **Computer vs User** (single-player mode against AI)
- **Player 1 vs Player 2** (local multiplayer)## Features
- 3x3 grid layout for the Tic Tac Toe board
- Two modes: Player vs Player & Computer vs User
- Game status display (winner)
- Game reset functionality
- Simple AI for the "Computer vs User" mode (random move)## Demo
### Screenshots
![]()
![]()
![]()
![]()
![]()
![]()
### Video
[Demo Here](https://drive.google.com/drive/folders/1dPfnpYTZqDYsHVvXmAxQKrCbNSEl0GgH?usp=sharing)## Technologies & Concepts Used
1. **Kotlin** is used for game logic, player turns, and state management.
2. **Jetpack Compose** enables declarative UI and automatic UI updates based on game state.
3. **Game Logic** handles board state, turn management, and winner detection.
4. **Two Game Modes**: AI plays against the user in single-player, or two players compete in multiplayer.
5. **AI (in single-player)** utilizes algorithms like **Minimax Algorithm** for decision-making based on board evaluation.## Getting Started
- To get started with this project, clone this repository and open it in Android Studio.
```
git clone https://github.com/AritraC1/TicTacToeGame.git
```- Build and run the app on your android device.