3 ms·
Show HN: I made a Sudoku game you can play using Vim
Source: https://github.com/alabhyajindal/vimsudoku https://github.com/alabhyajindal/vimsudoku
- ZeroGravitas 2y agoVery nice. Possibly a key to jump to next/previous empty square, w/b or n/p?
- alabhyajindal 2y agoThank you! Added w/b!
- tiagotriques 2y agogg and G would also be nice :)
- alabhyajindal 2y agoAdded!
- Exuma 2y agoCan we get a screenshot
- alabhyajindal 2y agoSure! https://imgur.com/a/qAPEigv https://imgur.com/a/qAPEigv
- NAHWheatCracker 2y agoI played this app when it was on netlify and you posted it originally (https://news.ycombinator.com/item?id=38913220 https://news.ycombinator.com/item?id=38913220). I noticed a few weeks ago the redirection of the domain. Now I see this today and I'm very disappointed. I can't click on desktop. It doesn't scale nor does tapping work on my phone. Basically ruined the app for me. I can't imagine my brother-in-law who says he used this app every day will be happy.
- alabhyajindal 2y agoYes! I remember your comments on the previous one. Thank you for playing! I did set up a redirect from sudoku-aj.netlify.app to vimsudoku.com but I removed it when I started modifying this project heavily. This is unusable on mobile and I didn't want it to affect people who like the previous one! Please let me know if you face problems with the original project. I am sorry for the trouble!
- NAHWheatCracker 2y agoOh thanks so much! I didn't consider checking the old domain, I updated my bookmark at some point.
- ekusiadadus 2y agoIt's great, but how to submit (or complete) sudoku itself?
- alabhyajindal 2y agoThanks! You have to use the keyboard to navigate the grid and enter values. You'll get a message congratulating you when you finish adding valid values for the missing cells. The game will be over if you make 3 mistakes and you'll be prompted if you want to start a new one.
- alabhyajindal 2y agoHi everyone! I made a Sudoku game and launched it on HN about 6 months ago: https://news.ycombinator.com/item?id=38913220 https://news.ycombinator.com/item?id=38913220 I got great feedback. The most request feature were pencil marks and keyboard navigation. At the time I was starting to use Vim so I thought it'll be cool to use Vim to navigate the grid. This is the implementation of that idea. I hope you enjoy it!
- danielohrlund 2y agoWell done, this is fun! I think it would be nice to use the cursor to indicate if the app is currently in pencil or solve mode. And one small bug report, gg only works like 33-50% of the time for me.
- alabhyajindal 2y agoThank you! That's a great idea. Do you think I should change the color of the active cell depending on the mode? There is currently an indicator in the status bar - what do you think about that? Fixed the gg bug! Earlier it worked if you typed two gs within 700ms. New implementation emulates Vim by waiting for the next character.
- danielohrlund 2y agoI use a block cursor for visual mode & a thin cursor for insert mode so I'd prefer something like that, either changing to a text field cursor in solve mode or maybe adding a underline so that it looks like it's a one character input field in the cell. But color works too! I saw the status bar indicator but it felt a bit distracting that I had to look away from the grid every time to confirm that I'm in the right mode