packages/warriorjs-cli/src/ui/printBoard.js
function printBoard(floorMap, warriorStatus, offset) {
  if (offset > 0) {
    const floorMapRows = floorMap.length;
    print(ansiEscapes.cursorUp(offset + floorMapRows + warriorStatusRows));
  }

  printWarriorStatus(warriorStatus);
  printFloorMap(floorMap);

  if (offset > 0) {
    print(ansiEscapes.cursorDown(offset));
  }
}
function printBoard(floorMap, warriorStatus, offset) {
  if (offset > 0) {
    const floorMapRows = floorMap.length;
    print(ansiEscapes.cursorUp(offset + floorMapRows + warriorStatusRows));
  }

  printWarriorStatus(warriorStatus);
  printFloorMap(floorMap);

  if (offset > 0) {
    print(ansiEscapes.cursorDown(offset));
  }
}
function printBoard ( floorMap , warriorStatus , offset ) { if ( offset > 0 ) { const floorMapRows = floorMap . length ; print ( ansiEscapes . cursorUp ( offset + floorMapRows + warriorStatusRows ) ) ; } printWarriorStatus ( warriorStatus ) ; printFloorMap ( floorMap ) ; if ( offset > 0 ) { print ( ansiEscapes . cursorDown ( offset ) ) ; } }
Prints the game board after moving the cursor up a given number of rows.

@param {Object[][]} floorMap The map of the floor.
@param {Object} warriorStatus The status of the warrior.
@param {number} offset The number of rows.
Prints the game board after moving the cursor up a given number of rows .