pull down to refresh

Hi! This is a little game I've been working on over the past few weekends.
It's heavily inspired by lastpaywins.com by @alex_lewin.
It works similarly, except that you invite a friend to join your game—so you're not playing against strangers. Also, the timer is 24 hours instead of 300 seconds.
I think this game could be fun because winning sounds simple: you just need to remember to zap back within 24 hours. But the same goes for your friend. So, over time, the pool grows, and eventually—maybe after months??—someone will forget, and the winner gets the full pool!
I'm glad I can finally release the first version to get some feedback and see whether it's worth continuing to work on alongside SN in my spare time. It can get quite depressing to work on the same codebase day in, day out for two years.
I don't have high expectations for this game; I mostly just wanted to prove to myself that I can execute on an idea from start to finish completely on my own that others might also find cool. Oh, and I wanted to try out a different tech stack instead of only working with Stacker News' tech stack. This game is built with Echo+HTMX+Templ.
Here are some screenshots:
Let me know if you want to play, then I will create a game with the default of 100 sats per zap and reply with the invite link. You can of course also create your own game and drop the links in here so others can join! I am just offering to play with anyone using the default zap setting (or lower if requested).
PWA with push notifications is planned
Are you paying me to be your friend or am I paying you?
Either way, I'm in!
reply
reply
You know I love getting to accuse you of cheating.
I made my payment two hours ago, but your countdown clock has only advanced 16 minutes.
reply
38 sats \ 9 replies \ @ek OP 5 May
There’s a bug, I suspect clock drift between my JavaScript counting down each second vs real time
But when you refresh the page it should show the correct time
I just paid and it did show 22h left for example
edit: ohhh, or my JavaScript countdown is only running when it’s in the foreground. If I were a browser, I also wouldn’t keep JavaScript running in the background.
reply
Yeah, I remember lastpaywins had something similar going on where timers would not sync between tabs... @alex_lewin resolved it somehow, but don't know how.
reply
payment notifications are emitted via websocket that contain a timestamp of the payment. then the browser calculates how much time is left based on its own clock
40 sats \ 0 replies \ @ek OP 5 May
See @Undisciplined, we have a real OG here
I can already tell that this game is going to get out of hand.
reply
27 sats \ 3 replies \ @ek OP 5 May
Yes, but #971692 is probably going to get out of hand even faster
One piece of feedback: in addition to the countdown for time remaining on the current turn, I think you should also display the exact time at which the turn ends/expires. That way any sort of bugs in the countdown itself would be eliminated.
I've encountered this when switching out of the zaprank tab and then back into it later - the countdown doesn't correct itself until I refresh the page.
reply
103 sats \ 1 reply \ @ek OP 8h
Mhh, if I fix the countdown, do you still want to see the exact timestamp?
Maybe clicking on the countdown could toggle between timestamp and countdown though.
reply
I think the latter makes sense
reply
so cool man!! thanks for the shout out. Love the modifications to the concept. gives the game a whole new feel :)))
Congrats on shipping.
reply
3 sats \ 0 replies \ @ek OP 8h
Thank you and thank you for the inspiration!
Let me know if you want to play 👀
reply
Interesting! What’s min zap amount?
reply
73 sats \ 5 replies \ @ek OP 4 May
1 sat
wanna play with 1 sat per zap? I'd be paying more in fees with Phoenix though lol
reply
But can you handle so many games at once?
reply
82 sats \ 0 replies \ @OT 4 May
Ek vs SN
reply
88 sats \ 1 reply \ @ek OP 4 May
yes or we will see
reply
I’m in!
reply
reply
100 sats \ 6 replies \ @OT 4 May
Cool
I'm up for it. Who wants it?
reply
100 sats \ 5 replies \ @ek OP 4 May
You can play with me if you want:
reply
55 sats \ 4 replies \ @OT 4 May
OK let's go!
Is that lightning address an LNURL?
reply
What do you mean?
Your Stacker News lightning address is OT@stacker.news for example
reply
21 sats \ 2 replies \ @OT 4 May
Yeah, got it.
It's your turn
reply
0 sats \ 1 reply \ @ek OP 4 May
Check again 👀
100 sats \ 3 replies \ @Car 5 May
Cool want to check this out tomorrow in the lab.
reply
50 sats \ 2 replies \ @ek OP 5 May
there's not much to check out, the screenshots already show everything haha
reply
55 sats \ 1 reply \ @Car 5 May
Ya but I don’t understand it, via screenshots, I could get into it but rather just ask irl.
reply
ah ok, makes sense
reply
Cool idea! I'm writing a bitcoin zine, can I recommend this game in it? #971708
reply
21 sats \ 0 replies \ @ek OP 5 May
Sure, I feel honored!
reply
Sounds cool, if I had friends lol
reply
reply
Engaged!
reply
100 sats \ 4 replies \ @ek OP 4 May
Your turn again but no pressure, you have 24 hours!
reply
deleted by author
reply
hey, that's cheating lol
This is a nice idea. Can I make a bitly link for this to post in my discord server?
reply
0 sats \ 1 reply \ @ek OP 5 May
sure
reply
Thanks! Are you available for a game now? https://zapback.ekzy.is/game/e5f74fc92d4a2063
reply
51 sats \ 2 replies \ @sox 5 May
LFG! I wanted to know more about it during our displacement lol
reply
95 sats \ 1 reply \ @ek OP 5 May
We can play too if you want 👀
reply
21 sats \ 0 replies \ @sox 5 May
Yes!! Let’s play tomorrow 😸
reply
Anyone care to join for a 1000 sat game?
reply
Oof, LFG haha
reply
Great work @ek. I'm definitely going to try this out with my friends.
It can get quite depressing to work on the same codebase day in, day out for two years
Random question - do you have any tips for wrapping your head around the SN codebase? I'd love to contribute, it just seems overwhelming to start
reply
0 sats \ 1 reply \ @jasonb 22h
Very cool!
reply
0 sats \ 0 replies \ @ek OP 9h
Thank you!
reply
It works similarly, except that you invite a friend to join your game
Uh 🥺
reply
it could be promising game however what is concept of zap it is gambling or tips from people?
reply
0 sats \ 0 replies \ @ek OP 23h
gambling
reply
Who am I gonna zap here?
reply
How do I know that my friends has zapped the pool and how come @ek keep winning all the time?
reply
What's the game about,?
reply
That's cool. For once I thought a new game for comments!
Aren't the Stackers already playing similar (kind of) game for the "Cowboy Hat" on SN?
*We need to pay/spend daily, or we lose the hat/game.
I'm in... for a 10 sat game..is it ok?
reply
0 sats \ 1 reply \ @ek OP 5 May
I'm in... for a 10 sat game..is it ok?
sure
reply
Let's do it.
reply