Live data from Hacker News

Show HN: Stop playing my matchstick puzzles, start building your own in seconds

mathstick.github.io

31–36 of 36 posts

Re: Show HN: Stop playing my matchstick puzzles, start building your own in seconds

#31

Earlier quoted context omitted.

thank you and glad you love it, those books are more than enough. As for the css part, I would suggest you start by building the layout for the desktop first. Once the desktop version looks good, use media queries to adjust the design for mobile and tablet sizes. As for js and html part, think in Components: Instead of one giant file, break your code into "modules" or "components". In my matchstick game, I built the…

I appreciate the good faith effort here to learn (and advise on) programming skills! It’s rare nowadays.

Thank you. It's something I am really passionate about. Given my 'day job' and 'family time' and battling an uphill swim against my ADHD, I am still happy with the progress I've made so far. I feel like I'm almost there.

Re: Show HN: Stop playing my matchstick puzzles, start building your own in seconds

#32

Earlier quoted context omitted.

thank you and glad you love it, those books are more than enough. As for the css part, I would suggest you start by building the layout for the desktop first. Once the desktop version looks good, use media queries to adjust the design for mobile and tablet sizes. As for js and html part, think in Components: Instead of one giant file, break your code into "modules" or "components". In my matchstick game, I built the…

Thank you so much for the wonderful advice! It's so refreshing to see humans act and be human-- helping each other despite not knowing each other. For context, I've been stuck in tutorial hell for years! Part of it can be blamed on my ADHD, which is a serious disability if you want to finish any task. Still, I've been trying to make inroads at it... I've been reading several books at the same time, but stuck on chapt…

Thank you for sharing your story. Actually I didn't read any physical books to learn js and css, I learned both of them online and practicing them in my hobby projects, practicing is the only way that helps me finally grasp concepts of a programming/language and improve my coding skills using that specific language. I started learned css and js 17 years ago on https://www.w3schools.com, I decided to learn css just because I found it was so cool you can change the style of your website completely by replacing your css file with a different one. But later I used Java more frequently than other languages for 5 years due to my job need, and naturally I almost forgot all what I learned about js and css skill. It was around 2013/14 that js picked up my interest again due to the hit of nodejs at that time, so I turned to online to learn js again, this time learned it on https://javascript.info, yeah there are many resources to learning things, maybe nowadays people prefer LLMs, it's totally fine, just find the one that suits you. But remember you don't need to finish all those topics or concepts before you start your own project. Practices make your skill better if not perfect. Use those resources as references, you don't have to learn it chapter by chapter, everyone has different learning style. Programming is a long journey (and what any things else are not?), let your passion guides you, let you interest/hobby be your best teacher :) Best wishes ~

Re: Show HN: Stop playing my matchstick puzzles, start building your own in seconds

#33
post #5

I think I broke it a little, playing around with INT64_MAX - https://mathstick.github.io/play?q=hrojihaacciabcmtskiistbij... Edit: mostly directed at OP, the puzzle maker claimed something like 12 identical solutions for the same puzzle

Fix the integer overflow issue. Now your share link will only the first puzzle, the other two puzzles are invalid thus won't be shown any more. If you don't see any changes, you may need to refresh the browser to see the latest version.

Re: Show HN: Stop playing my matchstick puzzles, start building your own in seconds

#34

Nice job. I'd seen similar things in the past but I had no idea this was an actual type of puzzle. Your game has a bug which is relatively common in drag-and-drop games. If the viewport is smaller and I drag a match off-screen by accident, it can get stuck to the edge. Then it can become detached in such a way that makes it impossible to recover the match. https://en.wikipedia.org/wiki/Matchstick_puzzle

Fix the off-screen issue. Now the previous stuck stick will be reset to the original place on your next drag. Thanks for pointing this out. And you probably need to refresh the browser to see the new update

Re: Show HN: Stop playing my matchstick puzzles, start building your own in seconds

#36
post #5

I think I broke it a little, playing around with INT64_MAX - https://mathstick.github.io/play?q=hrojihaacciabcmtskiistbij... Edit: mostly directed at OP, the puzzle maker claimed something like 12 identical solutions for the same puzzle

Fix the integer overflow issue. Now your share link will only the first puzzle, the other two puzzles are invalid thus won't be shown any more. If you don't see any changes, you may need to refresh the browser to see the latest version.

Nice!
Post reply on HN