-
Notifications
You must be signed in to change notification settings - Fork 52
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'main' of github.com:manuel-martos/puzzyx
- Loading branch information
Showing
5 changed files
with
34 additions
and
22 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
11 changes: 9 additions & 2 deletions
11
shared/src/commonMain/kotlin/com/bumble/puzzyx/model/Puzzle.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,12 @@ | ||
package com.bumble.puzzyx.model | ||
|
||
enum class Puzzle { | ||
PUZZLE1 | ||
enum class Puzzle( | ||
val imagesDir: String, | ||
val columns: Int, | ||
val rows: Int | ||
) { | ||
|
||
PUZZLE1("bumble_logo", 19, 9); | ||
|
||
val maxEntryCount: Int = columns * rows | ||
} |
8 changes: 6 additions & 2 deletions
8
shared/src/commonMain/kotlin/com/bumble/puzzyx/model/PuzzlePiece.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,11 @@ | ||
package com.bumble.puzzyx.model | ||
|
||
import com.bumble.appyx.utils.multiplatform.Parcelable | ||
import com.bumble.appyx.utils.multiplatform.Parcelize | ||
|
||
@Parcelize | ||
data class PuzzlePiece( | ||
val i: Int, | ||
val j: Int, | ||
val entry: Entry | ||
) | ||
val entryId: Int | ||
) : Parcelable |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters