Skip to content

README should show all levels when entering epic mode #159

@olistic

Description

@olistic

Currently, when entering epic mode the README is frozen in the last level of the tower. When you're trying to fine-tune the score for a level other than the last one, it would be helpful if we had the README for that level available. The proposal is that when entering epic mode, the README is updated with all levels, one following the other.

Example:

# Starbolt - beginner

## Level 1

_You see before yourself a long hallway with stairs at the end. There's nothing in the way._

> **TIP:** Call `warrior.walk()` to walk forward in the Player's `playTurn` method.

### Floor Map

```
╔════════╗
║@      >║
╚════════╝

@ = Starbolt (20 HP)
> = stairs
```

## Level 2

_It's too dark to see anything, but you smell sludge nearby._

> **TIP:** Use `warrior.feel().isEmpty()` to see if there's anything in front of you, and `warrior.attack()` to fight it. Remember, you can only do one action per turn.

### Floor Map

```
╔════════╗
║@   s  >║
╚════════╝

@ = Starbolt (20 HP)
s = Sludge (12 HP)
> = stairs
```

## Level 3

...

## Abilities

### Actions (only one per turn)

- `warrior.attack()`: Attack a unit in the given direction (forward by default) dealing 5 HP of damage.
- `warrior.walk()`: Move one space in the given direction (forward by default).

### Senses

- `warrior.feel()`: Return the adjacent space in the given direction (forward by default).
- `warrior.think()`: Think about your options before choosing an action (`console.log` replacement).

## Next Steps

When you're done editing `Player.js`, run the `warriorjs` command again.

Metadata

Metadata

Assignees

No one assigned

    Labels

    good first issueLooking to contribute? Start here!pkg: cliPertaining to @warriorjs/clistatus: claimedIssues that are currently being worked on by someonetype: enhancementA potential improvement to something that already exists

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions