From 3223a80ece21235975ff75ccd558817f28e861cd Mon Sep 17 00:00:00 2001 From: Chris K Date: Thu, 31 May 2018 11:04:40 -0500 Subject: [PATCH] Death to whitespace --- MazeGenerator.kt | 4 ---- 1 file changed, 4 deletions(-) diff --git a/MazeGenerator.kt b/MazeGenerator.kt index 3cdd164..7c23265 100644 --- a/MazeGenerator.kt +++ b/MazeGenerator.kt @@ -1,5 +1,4 @@ import java.util.* - class MazeGenerator(val x: Int, val y: Int) { private val maze = Array(x) { IntArray(y) } @@ -14,7 +13,6 @@ class MazeGenerator(val x: Int, val y: Int) { } } } - fun display() { for (i in 0..y - 1) { // draw the north edge @@ -32,13 +30,11 @@ class MazeGenerator(val x: Int, val y: Int) { for (j in 0..x - 1) print("+---") println('+') } - inline private fun Array.shuffle(): Array { val list = toMutableList() Collections.shuffle(list) return list.toTypedArray() } - private enum class Direction(val bit: Int, val dx: Int, val dy: Int) { N(1, 0, -1), S(2, 0, 1), E(4, 1, 0),W(8, -1, 0);