async requestNextLevel() {
    if (this.profile.tower.hasLevel(this.profile.levelNumber + 1)) {
      const continueToNextLevel =
        this.assumeYes ||
        (await requestConfirmation(
          'Would you like to continue on to the next level?',
          true,
        ));
      if (continueToNextLevel) {
        this.prepareNextLevel();
        printSuccessLine(
          `See ${this.profile.getReadmeFilePath()} for updated instructions.`,
        );
      } else {
        printLine(
          'Staying on current level. Try to earn more points next time.',
        );
      }
    } else {
      const continueToEpicMode =
        this.assumeYes ||
        (await requestConfirmation(
          'Would you like to continue on to epic mode?',
          true,
        ));
      if (continueToEpicMode) {
        this.prepareEpicMode();
        printSuccessLine('Run warriorjs again to play epic mode.');
      }
    }
  }
/**
   * Gives the player the option to continue on to the next level.
   *
   * If the last level has already being reached, the player can choose to
   * continue on to epic mode.
   */
Gives the player the option to continue on to the next level.
If the last level has already being reached, the player can choose to
continue on to epic mode.
Gives the player the option to continue on to the next level . If the last level has already being reached the player can choose to continue on to epic mode .
async requestNextLevel() {
    if (this.profile.tower.hasLevel(this.profile.levelNumber + 1)) {
      const continueToNextLevel =
        this.assumeYes ||
        (await requestConfirmation(
          'Would you like to continue on to the next level?',
          true,
        ));
      if (continueToNextLevel) {
        this.prepareNextLevel();
        printSuccessLine(
          `See ${this.profile.getReadmeFilePath()} for updated instructions.`,
        );
      } else {
        printLine(
          'Staying on current level. Try to earn more points next time.',
        );
      }
    } else {
      const continueToEpicMode =
        this.assumeYes ||
        (await requestConfirmation(
          'Would you like to continue on to epic mode?',
          true,
        ));
      if (continueToEpicMode) {
        this.prepareEpicMode();
        printSuccessLine('Run warriorjs again to play epic mode.');
      }
    }
  }
async requestNextLevel ( ) { if ( this . profile . tower . hasLevel ( this . profile . levelNumber + 1 ) ) { const continueToNextLevel = this . assumeYes || ( await requestConfirmation ( 'Would you like to continue on to the next level?' , true , ) ) ; if ( continueToNextLevel ) { this . prepareNextLevel ( ) ; printSuccessLine ( ` ${ this . profile . getReadmeFilePath ( ) } ` , ) ; } else { printLine ( 'Staying on current level. Try to earn more points next time.' , ) ; } } else { const continueToEpicMode = this . assumeYes || ( await requestConfirmation ( 'Would you like to continue on to epic mode?' , true , ) ) ; if ( continueToEpicMode ) { this . prepareEpicMode ( ) ; printSuccessLine ( 'Run warriorjs again to play epic mode.' ) ; } } }
Gives the player the option to continue on to the next level.
Gives the player the option to continue on to the next level .