Revert "Simple workaround for problem described in KT-6437"
This reverts commit 34d408eb7b.
This commit is contained in:
@@ -16,10 +16,7 @@ class Field(
|
||||
// if init(i, j) is true, the cell (i, j) is alive
|
||||
init: (Int, Int) -> Boolean
|
||||
) {
|
||||
private val live: Array<Array<Boolean>>
|
||||
init {
|
||||
live = Array(height) { i -> Array(width) { j -> init(i, j) } }
|
||||
}
|
||||
private val live: Array<Array<Boolean>> = Array(height) { i -> Array(width) { j -> init(i, j) } }
|
||||
|
||||
private fun liveCount(i: Int, j: Int)
|
||||
= if (i in 0..height - 1 &&
|
||||
|
||||
Reference in New Issue
Block a user