Live data from Hacker News

Show HN: Zsweep – Play Minesweeper using only Vim motions

zsweep.com

21–30 of 34 posts

Re: Show HN: Zsweep – Play Minesweeper using only Vim motions

#24

Love games like this. I used Vim Snake to make the muscle memory for hjkl finally stick in my brain. (I wish you could disable the insert mode toggling -- it's cute but didn't help when I was trying to break the habit of moving my finger up to press W or Up Arrow and remember that everything is in a straight line.) https://vimsnake.com

Thank you!!

I will add an issue for this!

Re: Show HN: Zsweep – Play Minesweeper using only Vim motions

#26
post #17

Very nice, only feedback I have rn is you should keep the board state displayed after you hit a mine. I like to look around the board to see what I missed after making a mistake.

Yes, after game loss, it should display all the mines and wrong flags marked.

I opened an issue regarding to this, Thank you for the advise!!

Re: Show HN: Zsweep – Play Minesweeper using only Vim motions

#27
Thanks all for the feedback and upvotes!

Motivated by the response, I just pushed a cleanup of the repo to make it easier to build and run locally.

I am now opening issues for the specific requests mentioned here--like adding the `e` motion, improving `w/b` logic, and preserving the board state when game over.

Thank you again, PRs are very welcome!!

Repo: https://github.com/oug-t/zsweep

Re: Show HN: Zsweep – Play Minesweeper using only Vim motions

#29
A friend of mine back in college was a minesweeper addict - he'd play it all the time on the computer lab staff machine (where he worked) when it was quiet but the manager eventually took all the games off all the machines.

https://github.com/rwestlund/freesweep was the result.

As he was learning how to program at the time, he decided to undertake writing minesweeper that he could play from a telnet session from the library or one of the vt100 terminals in the lab. And yes, he also had difficulty with the chording logic. He called it "super click" (that code is in clear.c). Part of the initial challenge was since he was taking this as his first project and before really reading the K&R everything was a one dimensional array (>.Movement code is in play.c

Re: Show HN: Zsweep – Play Minesweeper using only Vim motions

#30
post #29

A friend of mine back in college was a minesweeper addict - he'd play it all the time on the computer lab staff machine (where he worked) when it was quiet but the manager eventually took all the games off all the machines. https://github.com/rwestlund/freesweep was the result. As he was learning how to program at the time, he decided to undertake writing minesweeper that he could play from a telnet session from the…

That is a interesting story!

I will definitely checkout play.c for reference.

Post reply on HN