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.
Two dimensional grid of gems.
- width
- height
- swap(x, y, direction)
- gravity
- matcher
- mine
Determines whether a set of gems makes a match
- minimumMatchSize
- isMatch(gem[])
- nextGem()
UP, DOWN, LEFT, RIGHT