mirror of
https://github.com/InsanusMokrassar/PsychomatrixBase.git
synced 2024-11-22 08:13:57 +00:00
fix of operations list
This commit is contained in:
parent
15f0b19ee6
commit
21729c4e64
@ -19,7 +19,7 @@ val List<Operation>.canGrowSimpleWay: Boolean
|
|||||||
val List<Operation>.containsSimpleGrows: Boolean
|
val List<Operation>.containsSimpleGrows: Boolean
|
||||||
get() = firstOrNull { it == FiveGrowNine || it == NineGrowFive || it is GrowCustom } != null
|
get() = firstOrNull { it == FiveGrowNine || it == NineGrowFive || it is GrowCustom } != null
|
||||||
|
|
||||||
private val operations = listOf(
|
private val operations: List<Operation> = listOf(
|
||||||
TwoGrowFour,
|
TwoGrowFour,
|
||||||
FourGrowTwo,
|
FourGrowTwo,
|
||||||
OneGrowEight,
|
OneGrowEight,
|
||||||
@ -28,9 +28,9 @@ private val operations = listOf(
|
|||||||
SevenGrowSix,
|
SevenGrowSix,
|
||||||
FiveGrowNine,
|
FiveGrowNine,
|
||||||
NineGrowFive,
|
NineGrowFive,
|
||||||
(1 .. 9).map {
|
*(1 .. 9).map {
|
||||||
GrowCustom(it.toByte())
|
GrowCustom(it.toByte())
|
||||||
}
|
}.toTypedArray()
|
||||||
)
|
)
|
||||||
|
|
||||||
suspend fun availableConverts(numbers: MutableList<Byte>, operations: List<Operation>): List<Operation> {
|
suspend fun availableConverts(numbers: MutableList<Byte>, operations: List<Operation>): List<Operation> {
|
||||||
|
Loading…
Reference in New Issue
Block a user