Skip to content

fix: report source line number for mismatched grid row width - #8

Merged
RizgarOzan merged 2 commits into
RizgarOzan:mainfrom
Shadow16Ua:fix-row-width-line-number
Oct 9, 2026
Merged

RizgarOzan merged 2 commits into
RizgarOzan:mainfrom
Shadow16Ua:fix-row-width-line-number

Conversation

@Shadow16Ua

@Shadow16Ua Shadow16Ua commented Oct 5, 2026 •

Copy link
Copy Markdown
Contributor

Closes #7

Changes:

  • Tracked 1-based source line numbers for grid rows during parsing in LevelText.cs.

@RizgarOzan RizgarOzan left a comment

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks @Shadow16Ua, this looks good. I ran the core tests locally on your branch (52/52 pass) and checked that your new test fails against the old LevelText.cs, so it really pins the line number. All three points in #7's "Done when" list are covered. It'll be merged shortly.

@RizgarOzan
RizgarOzan merged commit 1b8e0e0 into RizgarOzan:main Oct 9, 2026
@RizgarOzan

Copy link
Copy Markdown
Owner

Merged, thank you @Shadow16Ua! Clean fix, and the test fails without it. If you want another one, #1-#6 are open (new levels and a bot strategy).

RizgarOzan added a commit that referenced this pull request Oct 10, 2026
jay23606's Rainfall level (#9) is the first sample that uses `-` cells, so I
re-ran the curve with it and put the new rows in the README table and in
docs/curve-1000.csv. The six old levels came out the same, only the
throughput column moved. 14,000 games now take about 4.3 seconds here.

I also added `-` to the level format legend, since nothing in the README
mentioned it, and bumped the core test count to 60 after #8.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Level errors about grid row width should include the line number

2 participants