Skip to content

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).

Notifications You must be signed in to change notification settings

AritraC1/TicTacToeGame

Repository files navigation

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

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.

About

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).

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages