Skip to content

Latest commit

 

History

6 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

kartel

Swapping match game logic in Kotlin

Used for something like a match-3 swaping game, where you swap two gems to make one or two matches.

Models

Board

Two dimensional grid of gems.

  • width
  • height
  • swap(x, y, direction)
  • gravity
  • matcher
  • mine

Matcher

Determines whether a set of gems makes a match

  • minimumMatchSize
  • isMatch(gem[])

Mineshaft

  • nextGem()

Direction

UP, DOWN, LEFT, RIGHT

About

Match 3 game logic in Kotlin

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages