TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

Show HN: Minesweeper

4 pointsby madpropsabout 4 years ago

1 comment

mtmailabout 4 years ago
Very nice readable source code.<p>One feature request I&#x27;d have is allowing users to skip flags. I usually play minesweeper fast and don&#x27;t set any flags. The game should end when I opened all fields without hitting a bomb, at least that&#x27;s how others minesweeper implementations work (e.g. <a href="https:&#x2F;&#x2F;www.google.com&#x2F;fbx?fbx=minesweeper" rel="nofollow">https:&#x2F;&#x2F;www.google.com&#x2F;fbx?fbx=minesweeper</a>). Maybe<p>if (num_revealed = x*y-num_bombs) Mine.over = true<p>The google one also seems to guarantee that the first click opens a whole field, never just one number or bomb. Not sure how they do that but it make the game more enjoyable.
评论 #26237606 未加载