-
-
Notifications
You must be signed in to change notification settings - Fork 557
[ Flower Field ] Deprecate minesweeper for flower-field #2575
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
SleeplessByte
merged 6 commits into
exercism:main
from
habere-et-dispertire:flower-field
Jun 20, 2025
Merged
Changes from all commits
Commits
Show all changes
6 commits
Select commit
Hold shift + click to select a range
515ea38
[ Flower Field ] Deprecate minesweeper for flower-field
habere-et-dispertire 4ed5f55
Changed 404 link to Wikipedia
habere-et-dispertire 3d4c8cb
Remove whitespace
habere-et-dispertire 7518e61
Linting and minor wording
habere-et-dispertire dba3be6
Adjust blurb to match intro
habere-et-dispertire 7e5e279
Adjust linting rule to preserve multi-lines for readability
habere-et-dispertire File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,201 @@ | ||
| { | ||
| "exercise": "flower-field", | ||
| "comments": [ | ||
| "The expected outputs are represented as arrays of strings to", | ||
| "improve readability in this JSON file.", | ||
| "Your track may choose whether to present the input as a single", | ||
| "string (concatenating all the lines) or as the list." | ||
| ], | ||
| "cases": [ | ||
| { | ||
| "uuid": "237ff487-467a-47e1-9b01-8a891844f86c", | ||
| "description": "no rows", | ||
| "property": "annotate", | ||
| "input": { | ||
| "garden": [] | ||
| }, | ||
| "expected": [] | ||
| }, | ||
| { | ||
| "uuid": "4b4134ec-e20f-439c-a295-664c38950ba1", | ||
| "description": "no columns", | ||
| "property": "annotate", | ||
| "input": { | ||
| "garden": [""] | ||
| }, | ||
| "expected": [""] | ||
| }, | ||
| { | ||
| "uuid": "d774d054-bbad-4867-88ae-069cbd1c4f92", | ||
| "description": "no flowers", | ||
| "property": "annotate", | ||
| "input": { | ||
| "garden": [ | ||
| " ", | ||
| " ", | ||
| " " | ||
| ] | ||
| }, | ||
| "expected": [ | ||
| " ", | ||
| " ", | ||
| " " | ||
| ] | ||
| }, | ||
| { | ||
| "uuid": "225176a0-725e-43cd-aa13-9dced501f16e", | ||
| "description": "garden full of flowers", | ||
| "property": "annotate", | ||
| "input": { | ||
| "garden": [ | ||
| "***", | ||
| "***", | ||
| "***" | ||
| ] | ||
| }, | ||
| "expected": [ | ||
| "***", | ||
| "***", | ||
| "***" | ||
| ] | ||
| }, | ||
| { | ||
| "uuid": "3f345495-f1a5-4132-8411-74bd7ca08c49", | ||
| "description": "flower surrounded by spaces", | ||
| "property": "annotate", | ||
| "input": { | ||
| "garden": [ | ||
| " ", | ||
| " * ", | ||
| " " | ||
| ] | ||
| }, | ||
| "expected": [ | ||
| "111", | ||
| "1*1", | ||
| "111" | ||
| ] | ||
| }, | ||
| { | ||
| "uuid": "6cb04070-4199-4ef7-a6fa-92f68c660fca", | ||
| "description": "space surrounded by flowers", | ||
| "property": "annotate", | ||
| "input": { | ||
| "garden": [ | ||
| "***", | ||
| "* *", | ||
| "***" | ||
| ] | ||
| }, | ||
| "expected": [ | ||
| "***", | ||
| "*8*", | ||
| "***" | ||
| ] | ||
| }, | ||
| { | ||
| "uuid": "272d2306-9f62-44fe-8ab5-6b0f43a26338", | ||
| "description": "horizontal line", | ||
| "property": "annotate", | ||
| "input": { | ||
| "garden": [" * * "] | ||
| }, | ||
| "expected": ["1*2*1"] | ||
| }, | ||
| { | ||
| "uuid": "c6f0a4b2-58d0-4bf6-ad8d-ccf4144f1f8e", | ||
| "description": "horizontal line, flowers at edges", | ||
| "property": "annotate", | ||
| "input": { | ||
| "garden": ["* *"] | ||
| }, | ||
| "expected": ["*1 1*"] | ||
| }, | ||
| { | ||
| "uuid": "a54e84b7-3b25-44a8-b8cf-1753c8bb4cf5", | ||
| "description": "vertical line", | ||
| "property": "annotate", | ||
| "input": { | ||
| "garden": [ | ||
| " ", | ||
| "*", | ||
| " ", | ||
| "*", | ||
| " " | ||
| ] | ||
| }, | ||
| "expected": [ | ||
| "1", | ||
| "*", | ||
| "2", | ||
| "*", | ||
| "1" | ||
| ] | ||
| }, | ||
| { | ||
| "uuid": "b40f42f5-dec5-4abc-b167-3f08195189c1", | ||
| "description": "vertical line, flowers at edges", | ||
| "property": "annotate", | ||
| "input": { | ||
| "garden": [ | ||
| "*", | ||
| " ", | ||
| " ", | ||
| " ", | ||
| "*" | ||
| ] | ||
| }, | ||
| "expected": [ | ||
| "*", | ||
| "1", | ||
| " ", | ||
| "1", | ||
| "*" | ||
| ] | ||
| }, | ||
| { | ||
| "uuid": "58674965-7b42-4818-b930-0215062d543c", | ||
| "description": "cross", | ||
| "property": "annotate", | ||
| "input": { | ||
| "garden": [ | ||
| " * ", | ||
| " * ", | ||
| "*****", | ||
| " * ", | ||
| " * " | ||
| ] | ||
| }, | ||
| "expected": [ | ||
| " 2*2 ", | ||
| "25*52", | ||
| "*****", | ||
| "25*52", | ||
| " 2*2 " | ||
| ] | ||
| }, | ||
| { | ||
| "uuid": "dd9d4ca8-9e68-4f78-a677-a2a70fd7a7b8", | ||
| "description": "large garden", | ||
| "property": "annotate", | ||
| "input": { | ||
| "garden": [ | ||
| " * * ", | ||
| " * ", | ||
| " * ", | ||
| " * *", | ||
| " * * ", | ||
| " " | ||
| ] | ||
| }, | ||
| "expected": [ | ||
| "1*22*1", | ||
| "12*322", | ||
| " 123*2", | ||
| "112*4*", | ||
| "1*22*2", | ||
| "111111" | ||
| ] | ||
| } | ||
| ] | ||
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,26 @@ | ||
| # Instructions | ||
|
|
||
| Your task is to add flower counts to empty squares in a completed Flower Field garden. | ||
| The garden itself is a rectangle board composed of squares that are either empty (`' '`) or a flower (`'*'`). | ||
|
|
||
| For each empty square, count the number of flowers adjacent to it (horizontally, vertically, diagonally). | ||
| If the empty square has no adjacent flowers, leave it empty. | ||
| Otherwise replace it with the count of adjacent flowers. | ||
|
|
||
| For example, you may receive a 5 x 4 board like this (empty spaces are represented here with the '·' character for display on screen): | ||
|
|
||
| ```text | ||
| ·*·*· | ||
| ··*·· | ||
| ··*·· | ||
| ····· | ||
| ``` | ||
|
|
||
| Which your code should transform into this: | ||
|
|
||
| ```text | ||
| 1*3*1 | ||
| 13*31 | ||
| ·2*2· | ||
| ·111· | ||
| ``` |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,7 @@ | ||
| # Introduction | ||
|
|
||
| [Flower Field][history] is a compassionate reimagining of the popular game Minesweeper. | ||
| The object of the game is to find all the flowers in the garden using numeric hints that indicate how many flowers are directly adjacent (horizontally, vertically, diagonally) to a square. | ||
| "Flower Field" shipped in regional versions of Microsoft Windows in Italy, Germany, South Korea, Japan and Taiwan. | ||
|
|
||
| [history]: https://web.archive.org/web/20020409051321fw_/http://rcm.usr.dsi.unimi.it/rcmweb/fnm/ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,4 @@ | ||
| title = "Flower Field" | ||
| blurb = "Mark all the flowers in a garden." | ||
| deep_dive_youtube_id = "dLT2h2hODhs" | ||
| deep_dive_blurb = "We explore nested for loops, clever use of min/max to simplify bounds checking, functional pipelines and using two-dimensional matrices." |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,3 @@ | ||
| **NOTE: This exercise has been deprecated** | ||
| Your track should implement "flower-field" instead. | ||
| https://forum.exercism.org/t/suggestion-deprecate-minesweeper-for-flower-field/17967 | ||
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.