more debugging printouts
This commit is contained in:
@@ -58,8 +58,8 @@ struct Maze : CustomStringConvertible {
|
||||
let s: [[String]] = walls.enumerated().map { i, r in
|
||||
[String(format: "%3d ", i)] + r.map { $0 ? "██" : " " }
|
||||
}
|
||||
print(" " + (0..<w).map { " \($0 % 10)" }.joined())
|
||||
return s.map { $0.joined() }.joined(separator: "\n")
|
||||
return (" " + (0..<w).map { " \($0 % 10)" }.joined()) +
|
||||
s.map { $0.joined() }.joined(separator: "\n")
|
||||
}
|
||||
init(fromFile f: String) throws {
|
||||
let content = try String(contentsOfFile: f, encoding: .ascii)
|
||||
|
Reference in New Issue
Block a user