🎮 A dual-mode Tic Tac Toe game for Desktop & Android built using JetBrains Compose Multiplatform.
The classic game comes with two versions: a local 2-player mode and a single-player versus bot mode with switchable difficulty.
- Bot with 2 difficulty settings based on a Strategy Pattern, switchable even in-game
- All model data, logic, and UI components (except
ExitDialog
) shared in:common
- Platform-specific declarations using
expect
/actual
for:- Pop-up dialog composable
- Screen navigation sealed class
- Resource getter within composables
- Robust model and UI test suites
- Android navigation using
NavHost()
with arguments and back button handling - Responsive UI for Android with state retention between configuration changes
Clone the repository then pick an option:
-
./gradlew :desktop:run
from an open terminal in the root of the project -
Open the Gradle toolbar in IntelliJ IDEA and select
tic-tac-toe/Tasks/compose desktop/run
Clone the repository then pick an option:
-
Open the project in IntelliJ IDEA and choose specific tests using gutter icons or right-click any test folder to choose to run all tests in that module
-
Open the Gradle toolbar in IntelliJ IDEA and select
tic-tac-toe/Tasks/verification/allTests
Clone the repository then open the project in IntelliJ IDEA (or Android Studio) and run the android configuration.