News for hackers. Stuff that matters.
Re:Show HN: I finished my site for daily dogbunny puzzles, a... by drcode on Thursday November 17, 2022 @12:47PM (#33642713)
I'm Conrad, the main creator of the site and creator of the puzzle. Happy to answer any questions. The site should run on most modern browsers and phones, let me know asap if you have any difficulty so I can fix!
Re:Show HN: I finished my site for daily dogbunny puzzles, a... by M4v3R on Thursday November 17, 2022 @12:52PM (#33642794)
Hey, congrats on shipping your game! Just a heads up - the first time I loaded up the game on Safari iOS (iPhone 11 Pro) the bottom part of the game was a bit cut off at the bottom of the screen. When I changed the day tabs back and forth it fixed itself.

Edit: it looks like the site is also getting hugged to death by HN.

Re:Show HN: I finished my site for daily dogbunny puzzles, a... by drcode on Thursday November 17, 2022 @12:55PM (#33642836)
Yeah, mobile browsers are brutal if you want to use a "make this rectangle as big as possible" layout strategy, because they have multiple "view heights" depending on whether the address bar is visible (since they automatically hide on scroll these days) there is no good solution for this with CSS yet that works on all browsers. I will continue to work on improving that.

the struggle is real

Re:Show HN: I finished my site for daily dogbunny puzzles, a... by bombcar on Thursday November 17, 2022 @12:51PM (#33642765)
The “you have to have someone on the carrot” message sometimes took too long to disappear. Maybe it should fade away once you try to move something else.
Re:Show HN: I finished my site for daily dogbunny puzzles, a... by drcode on Thursday November 17, 2022 @12:53PM (#33642802)
Yes, will fix
Re:Show HN: I finished my site for daily dogbunny puzzles, a... by pablo24602 on Thursday November 17, 2022 @12:52PM (#33642779)
Heads up- your external link to Twitter isn't working
Re:Show HN: I finished my site for daily dogbunny puzzles, a... by drcode on Thursday November 17, 2022 @12:53PM (#33642799)
Thanks, will fix
Re:Show HN: I finished my site for daily dogbunny puzzles, a... by sohkamyung on Thursday November 17, 2022 @07:44PM (#33648221)
The 'i' button brings up the info page, but the words are too large, and the bottom is cut off in my browser (Firefox Nightly on Windows 11). I cannot scroll down to see the rest of the page.

To read it properly, I had to zoom the page (pressing Ctrl + '-' repeatedly).

Re:Show HN: I finished my site for daily dogbunny puzzles, a... by MerelyMortal on Thursday November 17, 2022 @12:53PM (#33642809)
Did we hug it to death? (It's not loading for me. 504 Gateway Time-out)
Re:Show HN: I finished my site for daily dogbunny puzzles, a... by drcode on Thursday November 17, 2022 @12:56PM (#33642858)
sorry, I didn't expect it to reach the top of hacker news after 5 minutes of posting the link :(
Re:Show HN: I finished my site for daily dogbunny puzzles, a... by gota on Thursday November 17, 2022 @01:16PM (#33643167)
My condolences, I'm happy for your loss.
Re:Show HN: I finished my site for daily dogbunny puzzles, a... by gala8y on Thursday November 17, 2022 @01:08PM (#33643060)
that's good news in a way. congrats!
Re:Show HN: I finished my site for daily dogbunny puzzles, a... by drcode on Thursday November 17, 2022 @01:02PM (#33642971)
I did some hail mary fixes to try to get it up again, but it's unfortunately still struggling
Re:Show HN: I finished my site for daily dogbunny puzzles, a... by beardyw on Thursday November 17, 2022 @01:09PM (#33643071)
Made a note of the URL and will step aside for a while.
Re:Show HN: I finished my site for daily dogbunny puzzles, a... by lairv on Thursday November 17, 2022 @12:55PM (#33642842)
It seems yes
Re:Show HN: I finished my site for daily dogbunny puzzles, a... by max_ on Thursday November 17, 2022 @01:00PM (#33642915)
Same here
Re:Show HN: I finished my site for daily dogbunny puzzles, a... by smegsicle on Thursday November 17, 2022 @12:57PM (#33642871)
animations are cute, but the hitboxes are a bit large for when you've got two characters on one square and want to select who's behind
Re:Show HN: I finished my site for daily dogbunny puzzles, a... by 83457 on Thursday November 17, 2022 @01:09PM (#33643062)
I can't get to site but the pof had slow return animation. You can move an item to uncover one behind then move that one before first return.
Re:Show HN: I finished my site for daily dogbunny puzzles, a... by drcode on Thursday November 17, 2022 @01:01PM (#33642937)
Yes, this is tricky to fix because javascript doesn't check alpha channels on mouse events for images. I have a partial fix planned to improve this, should be improved in the next few weeks.
Re:Show HN: I finished my site for daily dogbunny puzzles, a... by cmcconomy on Thursday November 17, 2022 @01:08PM (#33643058)
maybe single-click to shuffle the top item to the bottom of the pile.
Re:Show HN: I finished my site for daily dogbunny puzzles, a... by Null-Set on Thursday November 17, 2022 @04:13PM (#33645801)
I believe you can apply an svg clip-path to the element with css to change the region you get events from. https://css-tricks.com/the-many-ways-to-link-up-shapes-and-i...
Re:Show HN: I finished my site for daily dogbunny puzzles, a... by tfsh on Thursday November 17, 2022 @01:02PM (#33642963)
I remember playing this 60 days ago when you released the prototype - congratulations on the official release! The game was a lot of fun, simple enough to be intuitively picked up but complex enough to spend a good 20 minutes trying to solve.

It also teaches the user quite a bit about prioritisation, and the fact it's essentially just a graph problem with multiple constraints which can be solved with a variation topological sort shows how useful algorithmic thinking is in daily life!

I can't view the site at the moment due to the HN hug of death, but I do have a question.

You say these are daily puzzles, are they hand curated by yourself or algorithmically generated - or a bit of both?

Re:Show HN: I finished my site for daily dogbunny puzzles, a... by drcode on Thursday November 17, 2022 @01:05PM (#33643006)
I have a heavily-tuned puzzle generator (written in zig) that generates candidate puzzles, which I then lay out with graphviz, then manually refine the layout and curate.
Re:Show HN: I finished my site for daily dogbunny puzzles, a... by Bimos on Friday November 18, 2022 @12:56AM (#33650935)
I'm trying to write program to solve it as a practice. I've almost got the algorithm part done, but I have to input the puzzle manually. I wonder if there is a way to automatically fetch and read the puzzle.
Re:Show HN: I finished my site for daily dogbunny puzzles, a... by gota on Thursday November 17, 2022 @01:19PM (#33643204)
I also played the prototype and similarly enjoyed it, and also can't play it now

Something that occurred to me: is there any way - or rather, are there any existing browser features that support - setting up an "alarm" for when a hug-to-death site becomes generally available again?

Re:Show HN: I finished my site for daily dogbunny puzzles, a... by terribleperson on Thursday November 17, 2022 @01:29PM (#33643376)
The difficulty would be not contributing to the deathhug. You could check if it's accessible at all if everyone accessed a server that was itself polling the site every minute, but trying to gauge beyond "accessible" and "not accessible" seems difficult.

Best would be if a site could report its availability status on its own externally. Anyone know of an existing service where you can report the status of your website?

Re:Show HN: I finished my site for daily dogbunny puzzles, a... by kevmo314 on Thursday November 17, 2022 @05:26PM (#33646800)
And if you do, could you also share it with the various cloud providers so they can render an accurate status page?
Re:Show HN: I finished my site for daily dogbunny puzzles, a... by goturd on Thursday November 17, 2022 @01:06PM (#33643031)
Site is currently down, here's an archive link: https://web.archive.org/web/20221117183654/https://dogbunnyp...
Re:Show HN: I finished my site for daily dogbunny puzzles, a... by drcode on Thursday November 17, 2022 @01:07PM (#33643040)
Creator here: I will do what I can to address the "hug of death" today. Meanwhile, here's a gif showing the look and feel: https://twitter.com/lisperati/status/1593296453534785537
Re:Show HN: I finished my site for daily dogbunny puzzles, a... by drcode on Thursday November 17, 2022 @01:40PM (#33643519)
seems back up again after some harrowing server changes, will need to put more work into scaling starting now
Re:Show HN: I finished my site for daily dogbunny puzzles, a... by jffry on Thursday November 17, 2022 @01:19PM (#33643206)
Those animations look great. Congrats on the launch - I'll try it out later when you're not getting hugged to death quite so hard :)
Re:Show HN: I finished my site for daily dogbunny puzzles, a... by bena on Thursday November 17, 2022 @01:32PM (#33643410)
Is it weird that I think the tree should be less detailed?
Re:Show HN: I finished my site for daily dogbunny puzzles, a... by drcode on Thursday November 17, 2022 @01:41PM (#33643534)
I actually know what you mean, I was wondering the same- These are always hard taste-based decisions
Re:Show HN: I finished my site for daily dogbunny puzzles, a... by bena on Friday November 18, 2022 @11:25AM (#33657044)
Yeah, it doesn't look bad, but everything else has a stronger cartoon vibe to it and the tree looks more on the realistic side of that.
Re:Show HN: I finished my site for daily dogbunny puzzles, a... by nicb on Thursday November 17, 2022 @01:46PM (#33643630)
this rocks also thanks for land of lisp! people like you, why the lucky stiff, and james halliday (substack) are my programming inspirations. seeing people with a passion for making cool, weird, and fun things is so great.
Re:Show HN: I finished my site for daily dogbunny puzzles, a... by paxys on Thursday November 17, 2022 @01:11PM (#33643092)
Tip for everyone posting their works to HN – address scaling for your site before it reaches the front page. It can be as simple as pressing two buttons on Cloudflare. You aren't going to get exposure like this often, and you don't want to blow it.
Re:Show HN: I finished my site for daily dogbunny puzzles, a... by drcode on Thursday November 17, 2022 @01:21PM (#33643255)
The tricky part is, you never know how much load you can handle until it's too late- I figured I had more headroom LOL
Re:Show HN: I finished my site for daily dogbunny puzzles, a... by ovex on Thursday November 17, 2022 @02:11PM (#33644041)
Great puzzle. I liked it so much that I saw your message about going live a few days ago already.

Is there any dynamic content generation involved? I am wondering because the Gateway timeout hints at something behind nginx being the bottleneck. Don't you just serve static files? Maybe you could configure nginx to cache dynamic resources if they only change once a day or even consider turning dynamic resources into static resources by generating them once per day and serving them as static files.

Re:Show HN: I finished my site for daily dogbunny puzzles, a... by drcode on Thursday November 17, 2022 @02:20PM (#33644172)
The problem is I'm not big on devops, so I was just hoping "things will be fast enough"

I just modified the server to serve all images from a cloudflare-based source, hope that will help

Also, it's definitely not just static stuff, it tracks full statistics on how people did in the puzzles so they can compete, and I didn't go very deep on optimizing that yet

Re:Show HN: I finished my site for daily dogbunny puzzles, a... by fragmede on Thursday November 17, 2022 @02:27PM (#33644265)
turn off statistics for the next day or so.
Re:Show HN: I finished my site for daily dogbunny puzzles, a... by ovex on Thursday November 17, 2022 @02:47PM (#33644558)
Now that it loaded again for me, I can see the /graphql endpoint. Caching GET requests to endpoints for a few minutes (or even just one minute) will likely suffice, given that the puzzle is the same for all users. If I am not overlooking anything, stats will lag behind for that period of time in the worst case. More info on how to configure nginx can be found on https://docs.nginx.com/nginx/admin-guide/content-cache/conte.... When a 502 error is served, images or bandwidth are usually not your problem but your backend that is too slow. In your case you probably only need `proxy_cache_path` to define the cache path, `proxy_cache` to specify the zone name you used with `proxy_cache_path`, and `proxy_cache_valid 200 302 1m;`.
Re:Show HN: I finished my site for daily dogbunny puzzles, a... by drcode on Thursday November 17, 2022 @03:14PM (#33644960)
this is super helpful, thanks

all stuff I don't know but I should

Re:Show HN: I finished my site for daily dogbunny puzzles, a... by coding123 on Thursday November 17, 2022 @01:17PM (#33643184)
it went down I think. am excited about this
Re:Show HN: I finished my site for daily dogbunny puzzles, a... by annoyingnoob on Thursday November 17, 2022 @01:41PM (#33643549)
Fun game. I hit an exception at the end of the Thursday puzzle, was going to capture it but it went away too fast.
Re:Show HN: I finished my site for daily dogbunny puzzles, a... by mr_sturd on Thursday November 17, 2022 @02:18PM (#33644141)
Working for me here (Firefox/Iceraven Android). I remember the original post; congratulations on shipping! Looking forward to playing more.

Took me 68 moves.

Re:Show HN: I finished my site for daily dogbunny puzzles, a... by pcmoore on Thursday November 17, 2022 @02:23PM (#33644215)
Love this game. On completing the level this error popped up:

class java.lang.IllegalStateException:Attempting to call unbound fn: #'clojure.core/unquote

I'm running on Chromium browser on XUbuntu.

Re:Show HN: I finished my site for daily dogbunny puzzles, a... by laweijfmvo on Thursday November 17, 2022 @02:25PM (#33644236)
Great work!
Re:Show HN: I finished my site for daily dogbunny puzzles, a... by ALittleLight on Thursday November 17, 2022 @02:34PM (#33644376)
Love the game. I wish I had taken a screenshot to help describe this, but I completed with 68 moves and in the 15th percentile. On the lower right of the completion page was an illustration of where my solution fit - to me, it looked like the illustration was showing a small number of solutions "above" mine (I assume the 15% of people who took more moves) and a large number "below" mine.

My intuition is that "Higher is better". I would expect my solution to be near the bottom, not near the top. Of course, maybe it's complicated because I have a higher number of moves than most, so maybe the thinking is "higher is higher"?

Minor minor issue. I love the game and I think the stats page is great.

One other issue - it's sometimes hard to select which character you want if both the rabbit and the dog are on the same node.

Re:Show HN: I finished my site for daily dogbunny puzzles, a... by WaffleIronMaker on Thursday November 17, 2022 @05:02PM (#33646488)
My friends and I are enjoying this site very much! Thanks for sharing. :)

My only suggestion is that I think clicking on the suggestion dialogues should make them disappear.

Re:Show HN: I finished my site for daily dogbunny puzzles, a... by drcode on Thursday November 17, 2022 @06:27PM (#33647469)
Will do
Re:Show HN: I finished my site for daily dogbunny puzzles, a... by kevincox on Thursday November 17, 2022 @07:38PM (#33648167)
My only complaint is that moving one character a long way can be quite awkward with click-drag-drop-click-drag-drop-click-drag-drop. It would be much nicer if you could just drag the whole way then release in one go.
Re:Show HN: I finished my site for daily dogbunny puzzles, a... by dpsrkp on Thursday November 17, 2022 @10:15PM (#33649586)
I did this in 32 moves
Re:Show HN: I finished my site for daily dogbunny puzzles, a... by Bimos on Friday November 18, 2022 @12:49AM (#33650888)
Hi, did I miss something or I can't reset after finishing the puzzle?