The Wiert Corner – irregular stream of stuff

Jeroen W. Pluimers on .NET, C#, Delphi, databases, and personal interests

  • My badges

  • Twitter Updates

  • My Flickr Stream

  • Pages

  • All categories

  • Enter your email address to subscribe to this blog and receive notifications of new posts by email.

    Join 1,854 other subscribers

Sweep the Strait: Minesweeper, but in the Straitt of Hormuz (plus some tests with RawGit alternatives)

Posted by jpluimers on 2026/03/31

Forgot to schedule this one when I saw it two weeks ago: [Wayback/Archive] Sweep the Strait.

Apart from demonstrating that Trump never had a plan, does not and will not have a plan, it is cool to see Minesweeper developed in JavaScript, HTML and CSS mapped with some geodata onto a real map of the Strait of Hormuz.

Cool idea!

It has a function Windows 3.x UI with functional menu (Game -> New Game; Help -> How to Play)

At first, I thought the original developer is this:

However, in fact the developer is:

Followed by a version with a map background

In the mean time another developer created a version with larger UI elements and an SVG map of the area at [Wayback/Archive] Trump | We’re Going To Win So Much.

That site is open source with a repository at .

It is a nice example that shows things like SEO to get amplicatian on for instance social media, but also has a modal frame showing the winning or losing state with an embedded YouTube short.

All in all it is less like the classic minesweeper (which few know started as an OS/2 version), but more polished. Choices, choices (:

I found the site via [Wayback/Archive] Hormuz Minesweeper – Are you tired of winning? | Hacker News

The gist / RawGit alternatives

Since the first Street of Hormuz Minesweeper did not seem to be available in a repository, I put the code in a gist just in case the page disappears.

The original source code is also archived, as next to the starting URL there are these as well:

Note the Wayback Machine inserts extra Wombat JavaScript code which can introduce issues (like with [Wayback/Archive] Math.random() – JavaScript | MDN,  see for instance [Wayback/Archive] Scripts running in The Wayback Machine : webdev), that’s why I put the whole thing into a gist.

Note that since RawGit got shut down 7 years ago this year, and my still preferred alternative is raw.githack.com as I already mentioned in my early 2019 blog post RawGit is going away: redirect your content before October 2019 (it does disappear after that). In the meantime, more RawGit alternatives have become available so here is a summary:

Tests with RawGit alternatives tested with
https://gist.githubusercontent.com/jpluimers/99d08df28f0900748da0607ad4b55597/raw/d791f3b73bad362f411ea5301f01fb5e710aaf05/index.html
Alternative Hosting URLs Result Repository
(if available)
raw.githack.com [Wayback/Archive] External Content Notice | rawgit.hack OK [Wayback/Archive] GitHub – neoascetic/rawgithack: Serves files from github, bitbucket and gitlab, but with the correct content types · GitHub
htmlpreview.github.io [Wayback/Archive] Sweep the Strait Only renders HTML; fails to load JavaScript; htmlpreview seems unmaintained since mid 2021 [Wayback/Archive] GitHub – htmlpreview/htmlpreview.github.com: HTML Preview for GitHub Repositories · GitHub
jsdelivr.com [Wayback/Archive] Migrate from GitHub to jsDelivr Does not support gists: “Sorry, this doesn’t look like a valid GitHub link :(“ none
observablehq.com [Wayback/Archive] How to: Rendering HTML from a Github gist / Andrew Wooldridge | Observable Only loads html, does not try to load the JavaScript and fails to load the CSS as it tries to load it from https://observablehq.com/@triptych/styles.css instead of from the gist. none
gistpreview.github.io [Wayback/Archive] Sweep the Strait (gist ID) or
[Wayback/Archive] Sweep the Strait (gist ID plus filename index.html)
Only loads the html, fails to load the JavaScript and CSS as it tries to load https://gistpreview.github.io/styles.css and https://gistpreview.github.io/app.js.

The repository has not been maintained since mid April 2016.

[Wayback/Archive] GitHub – gistpreview/gistpreview.github.io: Gist HTML Preview · GitHub
gitcdn.xyz or gitcdn.link [Wayback:GitCDN – A powerful CDN for Github files/Archive:GitCDN – A powerful CDN for Github files] Defunct sites; the domains have been taken over at the end of 2022.

The repository is read-only since mid 2023 and has not been maintained since November 2021.

Archived links serve as an example.

[Wayback/Archive] GitHub – schme16/gitcdn.xyz: Serve your content straight from GitHub, with the correct Content-Type, consistant url and a powerful CDN · GitHub
rawgit.org [Wayback: RawGit – A free CDN for GitHub, Bitbucket, GitLab repositories, images and any static assets/Archive: RawGit – A free CDN for GitHub, Bitbucket, GitLab repositories, images and any static assets] Defunct site; the domain has been taken over at the end of 2022.

Archived links serve as an example.

none

I based the table above on my own experiences in the past and the links from [Wayback/Archive] git – View rendered output of a gist? – Stack Overflow (thanks [Wayback/Archive] flossfan and [Wayback/Archive] rsp).

Note:

Despite RawGit having been sunset in 2019, the repository got maintained until 2022 and became read-only in 2024. Thanks [Wayback/Archive] rgrove (Ryan Grove) · GitHub for such a long time maintaining [Wayback/Archive] GitHub – rgrove/rawgit: Served files from raw.githubusercontent.com, but with the correct content types. No longer actively developed. · GitHub.

The geodata

The app source mentions the geodata source to be from Natural Earth, see this fragment:

// Generated from Natural Earth 10m admin-0 country polygons (IRN/OMN/ARE)
// over bbox [55.1, 24.0, 58.8, 27.15] with 5x5 supersampling per cell.

Likely sources:

Query: [Wayback/Archive] Natural Earth 10m admin-0 country polygons at DuckDuckGo

Related blog post: GitHub – slikts/js-equality-game: The Worst Minesweeper 💣 Ever

--jeroen

Leave a comment

This site uses Akismet to reduce spam. Learn how your comment data is processed.