Remember to exclude vimium from the site!
Show HN: Zsweep – Play Minesweeper using only Vim motions
21–30 of 34 posts
Re: Show HN: Zsweep – Play Minesweeper using only Vim motions
#22Very useful as someone who's trying to use Vim motions more often, thanks!
I will try to integrate more advanced motions inside the game!!
Re: Show HN: Zsweep – Play Minesweeper using only Vim motions
#23This is nice! love this
Re: Show HN: Zsweep – Play Minesweeper using only Vim motions
#24Love 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
I will add an issue for this!
Re: Show HN: Zsweep – Play Minesweeper using only Vim motions
#25Too bad it doesn't display the keyboard on mobile :-(
I opened an issue on the repo regarding this, thanks for the feedback.
Re: Show HN: Zsweep – Play Minesweeper using only Vim motions
#26Very 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.
I opened an issue regarding to this, Thank you for the advise!!
Re: Show HN: Zsweep – Play Minesweeper using only Vim motions
#27Motivated 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!!
Re: Show HN: Zsweep – Play Minesweeper using only Vim motions
#28Re: Show HN: Zsweep – Play Minesweeper using only Vim motions
#29https://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
#30A 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…
I will definitely checkout play.c for reference.