lib/room.js
// determine what edge of the room a door is on
determine what edge of the room a door is on
determine what edge of the room a door is on
findExitDirection(door) {
    let direction
    if (door.x >= (this.x + this.width)) {
      direction = 'EAST'
    } else if (door.x <= this.x) {
      direction = 'WEST'
    } else if (door.y <= this.y) {
      direction = 'NORTH'
    } else {
      direction = 'SOUTH'
    }
    return direction
  }
findExitDirection ( door ) { let direction if ( door . x >= ( this . x + this . width ) ) { direction = 'EAST' } else if ( door . x <= this . x ) { direction = 'WEST' } else if ( door . y <= this . y ) { direction = 'NORTH' } else { direction = 'SOUTH' } return direction }
determine what edge of the room a door is on
determine what edge of the room a door is on