fix of operations list

This commit is contained in:
InsanusMokrassar 2018-09-07 21:03:59 +08:00
parent 15f0b19ee6
commit 21729c4e64

View File

@ -19,7 +19,7 @@ val List<Operation>.canGrowSimpleWay: Boolean
val List<Operation>.containsSimpleGrows: Boolean
get() = firstOrNull { it == FiveGrowNine || it == NineGrowFive || it is GrowCustom } != null
private val operations = listOf(
private val operations: List<Operation> = listOf(
TwoGrowFour,
FourGrowTwo,
OneGrowEight,
@ -28,9 +28,9 @@ private val operations = listOf(
SevenGrowSix,
FiveGrowNine,
NineGrowFive,
(1 .. 9).map {
*(1 .. 9).map {
GrowCustom(it.toByte())
}
}.toTypedArray()
)
suspend fun availableConverts(numbers: MutableList<Byte>, operations: List<Operation>): List<Operation> {