TE
科技回声
首页24小时热榜最新最佳问答展示工作
GitHubTwitter
首页

科技回声

基于 Next.js 构建的科技新闻平台,提供全球科技新闻和讨论内容。

GitHubTwitter

首页

首页最新最佳问答展示工作

资源链接

HackerNews API原版 HackerNewsNext.js

© 2025 科技回声. 版权所有。

Show HN: Terminal Mines

11 点作者 accatyyc大约 9 年前

2 条评论

kazinator大约 9 年前
This looks like it could integrate into Nethack somehow.<p>The minefield could be a dungeon in which the Nethack character can move around as usual. The mines blow up if stepped on. Stepping on numbers is safe, and stepping on an un-numbered square which is not a mine &quot;opens up&quot; the field, as usual.<p>There must be some way of placing a flag to a neighboring square in any movement direction. The semantics of dropping an item almost work; except that item dropping takes place in the current square. Throwing an item takes a direction; throwing a flag could be used, implicitly limited to a one-square range. Flags could be part of the character&#x27;s inventory.<p>This version of minesweeper, of course, adds the additional difficulty that you don&#x27;t have random access: you cannot click on any square you want, because you have to traverse the minefield with your Nethack character.<p>It could be a requirement that you have to cross some of the minefield to get to the spot where you can pick up the flags (you don&#x27;t just get flags automagically when you enter a mine field dungeon, and they are not available at the entrance). Until you get the flags, you have to use some substitute objects in place of flags, or just rely on memory.<p>The character could be simultaneously required to engage monsters that roam the mine field. Some monsters could be affected by mines; however, they know where the mines are and avoid them; if you can remember a square where such monster has stepped, you can safely step there yourself. Other monsters could be unaffected by mines (flying creatures or ghosts).
评论 #11242182 未加载
accatyyc大约 9 年前
I felt that I could maybe get better at Minesweeper with a keyboard interface, so I made this game with ncurses. The controls are inspired by nethack&#x2F;vim (but arrow keys work as well).<p>When developing it, I made the game logic into a library, which was also used by a friend to create a GameBoy version! Check it out: <a href="https:&#x2F;&#x2F;github.com&#x2F;rotmoset&#x2F;gb-mines" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;rotmoset&#x2F;gb-mines</a>
评论 #11241507 未加载