Skip to content

Commit

Permalink
Add Minesweeper hole (code-golf#1778)
Browse files Browse the repository at this point in the history
  • Loading branch information
Yewzir authored Jan 1, 2025
1 parent 7f25a63 commit 1053316
Show file tree
Hide file tree
Showing 4 changed files with 2,143 additions and 20 deletions.
23 changes: 23 additions & 0 deletions config/data/holes.toml
Original file line number Diff line number Diff line change
Expand Up @@ -2154,6 +2154,29 @@ preamble = '''
print the corresponding diamonds and medals.
'''

[Minesweeper]
experiment = 1025
category = 'Gaming'
links = [
{ name = 'Wikipedia', url = '//en.wikipedia.org/wiki/Minesweeper_(video_game)' },
]
synopsis = 'Print solved boards in Minesweeper games.'
preamble = '''
<p>
Minesweeper is a video game in which the player must clear a board without
detonating any of the hidden mines scattered throughout the grid of
clickable tiles.
<p>
Each argument represents a ten-by-ten board with thirteen mine tiles,
denoted by <code><b>M</b></code>. Replace the safe tiles, denoted by
<code><b>X</b></code>, with the number of adjacent mines.
<p>
Print a solved Minesweeper board for each argument, separated by newlines,
and replace each mine with <code><b>X</b></code> as if it weren't detonated.
'''

['Morse Decoder']
category = 'Transform'
released = 2018-02-18
Expand Down
Loading

0 comments on commit 1053316

Please sign in to comment.