A well-built Android app of the classic 2048 game.
- Basic functionality
- Complete functionality and local persistence
βββ adapter
β βββ GridAdapter.kt
βββ data
β βββ model
β β βββ Board.kt
β β βββ Cell.kt
β β βββ Game.kt
β β βββ Move.kt
β β βββ SavedGame.kt
β β βββ SavedGameSerializer.kt
β βββ repository
β βββ GameRepository.kt
βββ di
β βββ AppModule.kt
βββ MainActivity.kt
βββ MyApp.kt
βββ util
β βββ Util.kt
βββ view
β βββ fragment
β β βββ GameFragment.kt
β β βββ WinningFragment.kt
β βββ listener
β βββ OnSwipeTouchListener.kt
βββ viewmodel
βββ GameViewModel.kt
- Hilt (Dependency Injection)
- Proto Datastore (Typesafe local persistence)
Pull requests are welcome.
- Please make sure to follow the development style.
- For major changes, please open an issue first, and discuss, what you would like to change.