Skip to content

haechan29/Mahjong

Repository files navigation

🌟 Doraemon Mahjong


🌈 Reponsibilities

Card

  • Simple data class that conists of idx, number
  • idx determines the place in the layout
  • number determines the image of the front side

CardMatcher

  • Check matching when put two cards in it
  • Internally checks whether number is the same while idx is different

MahjongCardState

  • Data class to save the state of MahjongCard
  • Consists of three variables: rotatedState, blurred, clickable
  • When two cards are put to the card matcher,
    if matching, card becomes blurred and not clickable, if not matching, just rotated again.

🛠️ Skills

Jetpack Compose

  • Separated the state and the layout (MahjongCardState - MahjongCard)
  • Applied rotation, alpha animation using graphics layer

About

Jetpack Compose Practice

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages