Skip to content

aryanA101a/2048

Repository files navigation

2048

A well-built Android app of the classic 2048 game.

Milestones 🚩

  • Basic functionality
  • Complete functionality and local persistence

Project Structure 🧬

├── 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

Dependencies 🖇️

  1. Hilt (Dependency Injection)
  2. Proto Datastore (Typesafe local persistence)

Contributing 🎉

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.

About

2048 in Kotlin Android.

Topics

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages