Mild wording update

main
Bryson Zimmerman 11 months ago
parent ab402c28ca
commit 8d95463a9e

@ -26,8 +26,6 @@ object MazeFinder {
} }
fun primsAlgorithm() { fun primsAlgorithm() {
//Prime the graph with the first connection, which marks the first visited Tiles //Prime the graph with the first connection, which marks the first visited Tiles
val startingTile = World.getRandomLocation() val startingTile = World.getRandomLocation()
val tmpIndex = randGen.nextInt(Directions.ALL.size) val tmpIndex = randGen.nextInt(Directions.ALL.size)
@ -72,7 +70,7 @@ object MazeFinder {
current.getAdjacentTiles(false).forEach { current.getAdjacentTiles(false).forEach {
tile -> tile ->
val tileprops = World.get(tile) val tileprops = World.get(tile)
if(!tileprops.isManifested()) { if(!tileprops.isManifest()) {
World.update(tile, tileprops + Directions.MANIFEST) World.update(tile, tileprops + Directions.MANIFEST)
frontier.add(tile) frontier.add(tile)
} }

@ -54,7 +54,7 @@ value class TileProperties(val connections: Int) {
return connections and(DOWN.dir) == DOWN.dir return connections and(DOWN.dir) == DOWN.dir
} }
fun isManifested(): Boolean { fun isManifest(): Boolean {
return connections and(MANIFEST.dir) == MANIFEST.dir return connections and(MANIFEST.dir) == MANIFEST.dir
} }

Loading…
Cancel
Save