dist/Board.js
function mapBoard(board, func) {
    return board.map(function (col) {
        return col.map(function (p) {
            return func(p);
        });
    });
}
function mapBoard(board, func) {
    return board.map(function (col) {
        return col.map(function (p) {
            return func(p);
        });
    });
}
function mapBoard ( board , func ) { return board . map ( function ( col ) { return col . map ( function ( p ) { return func ( p ) ; } ) ; } ) ; }
Map some function in all board positions and return a new board
Map some function in all board positions and return a new board