From 151bb6793dc3c9458e8fed4f150ddf63aa8817b3 Mon Sep 17 00:00:00 2001 From: Igor Chevdar Date: Wed, 15 Mar 2017 18:49:11 +0300 Subject: [PATCH] Review fix --- samples/tetris/tetris.kt | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/samples/tetris/tetris.kt b/samples/tetris/tetris.kt index 5ed52b5480f..6d14d3e130d 100644 --- a/samples/tetris/tetris.kt +++ b/samples/tetris/tetris.kt @@ -21,11 +21,11 @@ enum class PlacementResult(val linesCleared: Int = 0, val bonus: Int = 0) { TETRIS(4, 1200) } -val EMPTY: Byte = 0 -val CELL1: Byte = 1 -val CELL2: Byte = 2 -val CELL3: Byte = 3 -val BRICK: Byte = -1 +const val EMPTY: Byte = 0 +const val CELL1: Byte = 1 +const val CELL2: Byte = 2 +const val CELL3: Byte = 3 +const val BRICK: Byte = -1 class Point(var x: Int, var y: Int) @@ -229,7 +229,7 @@ fun sleep(millis: Int) { } class GameField(val width: Int, val height: Int, val visualizer: GameFieldVisualizer) { - val MARGIN = 4 + private val MARGIN = 4 private val field: Field private val origin: Point