day_14/maze_04.js
// print maze described by passages on console
print maze described by passages on console
print maze described by passages on console
function printMaze(s) {
    for (let j = 0; j < s[0].length; j++) {
        printTop(s[0][j]);
    }
    process.stdout.write("\n");
    for (let i = 0; i < s.length; i++ ) {
        for (let j = 0; j < s[i].length; j++) {
            printLeftBottom(s[i][j]);
        }
        printRight(s[i][s[i].length - 1]);
        process.stdout.write("\n");
    }
}
function printMaze ( s ) { for ( let j = 0 ; j < s [ 0 ] . length ; j ++ ) { printTop ( s [ 0 ] [ j ] ) ; } process . stdout . write ( "\n" ) ; for ( let i = 0 ; i < s . length ; i ++ ) { for ( let j = 0 ; j < s [ i ] . length ; j ++ ) { printLeftBottom ( s [ i ] [ j ] ) ; } printRight ( s [ i ] [ s [ i ] . length - 1 ] ) ; process . stdout . write ( "\n" ) ; } }
print maze described by passages on console
print maze described by passages on console
// print top walls of top row // iterate over each row // print left and bottom wall for each cell of current row // print right wall for last cell of row