Skip to content

Add minesweeper#336

Merged
BNAndras merged 3 commits intoexercism:mainfrom
BNAndras:add-minesweeper
Apr 13, 2025
Merged

Add minesweeper#336
BNAndras merged 3 commits intoexercism:mainfrom
BNAndras:add-minesweeper

Conversation

@BNAndras
Copy link
Member

No description provided.

@BNAndras BNAndras added x:module/practice-exercise Work on Practice Exercises x:rep/large Large amount of reputation labels Apr 12, 2025
@BNAndras BNAndras requested a review from kotp April 12, 2025 04:53
@BNAndras
Copy link
Member Author

Oops, I forgot to run vint. I’ll fix that this weekend.

@kotp
Copy link
Member

kotp commented Apr 12, 2025

Oops, I forgot to run vint. I’ll fix that this weekend.

Sound's like a pre-commit hook could be useful for that.

Copy link
Member

@kotp kotp left a comment

Choose a reason for hiding this comment

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

Approved with possible consideration for the example file.

Comment on lines +26 to +28
if a:minefield[l:newRow][l:newCol] ==# '*'
let l:count += 1
endif
Copy link
Member

Choose a reason for hiding this comment

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

The asterisk is not case sensitive in that it does not have an upper or lower case version of itself. So I wonder if the linting is appropriate or if it communicates the wrong thing.

That said, this is an example file, and not all that important. But if this version were given as a student solution, this is the question I would be asking in terms of this syntax here.

Copy link
Member Author

Choose a reason for hiding this comment

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

Yeah, I won’t lose any sleep over an example solution not being formatted correctly as long as it passes. The CI check might catch something student-facing in the test suite when we edit the generated test suite for presentation’s sake like multiline lists or something.

@BNAndras BNAndras merged commit 72ce11e into exercism:main Apr 13, 2025
3 checks passed
@BNAndras BNAndras deleted the add-minesweeper branch April 13, 2025 00:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

x:module/practice-exercise Work on Practice Exercises x:rep/large Large amount of reputation

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants