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 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> {