aryanA101a / 2048

2048 in Kotlin Android.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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.


Languages

Language:Kotlin 100.0%