Skip to content

[BUG] Unbeatable scenario setup #192

Description

@GotFlojo

Bug Description

Some of the scenarios set you up in a way that makes them unbeatable in "optimal movements".
The basic movement scenarios for j and k have the cursor not only vertically displaced but also one character horizontally. The optimal solution says 1, which would only work without the horizontal offset.

Steps to Reproduce

  1. Go to scenario "Move cursor up using 'k' " or "Move cursor down using 'j'"
  2. Try to solve with optimal movement (expected: 1)

Expected Behavior

Initial Scenario setup should make it possible to solve with suggested optimal movement

Actual Behavior

Initial Scenario setup prevents suggested optimal solution.

Screenshots

Notice the horizontal offset of current cursor and target cursor in each of these scenarios.
This is the initial setup. No keys have been pressed yet.
A solution with 1 key press is impossible to achieve with this setup.

Image Image

Environment

  • OS: [ Windows 11]
  • Terminal: [Windows Terminal]
  • Rust version: [output of rustc --version]
  • Helix Trainer version: helix-trainer-v0.5.9-x86_64-pc-windows-msvc from the Releases page

Additional Context

Logs

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions