323 points · by igor_st · 1y ago · 79 comments
I wish the Dart server ecosystem was more mature though. Being able to compile Dart into a static binary is so nice for deployment.
I stopped using it because I needed to make money and my work was with nodejs.
There's not really a backend that takes advantage of all that. In theory, one server binary could handle REST, web sockets, background workers, and have generated type safe client packages for every platform. Dart also has a great Rust ffi story. It would be great to see that leveraged.
ServerPod is a great start, but it's really Flutter focused. The web apis feel like second class.
Additionally, database management isn't a solved problem yet. ServerPod uses yaml to define models, and the other main option is just a Prisma wrapper. Dart needs something like Drizzle.
I personally use Rust backends and Flutter frontends for my apps. I'd use pure Rust for the entire thing but Rust frontends are nowhere near the capabilities and maturity as Flutter, but I use FFI like flutter_rust_bridge and rinf at least, as you mention.
Considering that both are made by Google, I can imagine that they just use Go for everything servers.
However, one unfortunate bit is that the board (in my case, the TV connected to the Switch) is "read-only" and you don't interact with it, unlike real life. You pick which card to play on your phone, and then place it onto the board also on your phone. So basically, all the action is on your phone, and the central board is kind of an afterthought. It doesn't feel as much like interacting with a shared space as I was hoping.
I'm not really sure how to solve that. I thought of some weird stuff (like, maybe after you pick your card, your phone is just a touchpad controlling the card as it now moves around on the big screen) but nothing seemed practical.
That said, while I love physical games, some digital aspects seemed potentially appealing: automatic scoring, rules enforcement to prevent mistakes, not taking up space, ability to try new ones out easily, etc.
20y later, it's disappointing that this is still a novelty. I think Nintendo had a tank game for the Switch, but I never got to try it because everyone needed his own copy and a Switch. Jackbox are the only ones I've seen ship something people actually play this way.
Adaptive design still hasn't been capitalized on as well as it ought to be. Everything is so optimized for metrics and commerce, and good design often gets lost in the fray.
Incidentally it's also one of the few times I've seen a dart/flutter project on the front page of HN, and even had some non-critical comments, so again well done.
More details on the implementation are here (same content)
https://dev.to/ilbets/game-night-just-got-a-digital-upgrade-...
https://medium.com/@igorsteblii/game-night-just-got-a-digita...
I love it!
I remember back in the day I used to use Hamachi to play Xbox LAN with my friends in different universities.
I feel like you would benefit from having a real-life photo of "The deck" feature. Your description does it justice, but your graphic does not. (To me)
I agree that `engine` is a strong word - still early days :)
Have you published as yet, how to create a new game on this?
https://forums.swift.org/t/an-embedded-audio-product-built-w...
To carry this further, were you hoping that some DJ who likes playing card games would stumble upon this post and pivot onto your thing?
If you're proud of it, submit it as its own Show HN
Hope to finish the new version soon
There's enough weird anime porn garbage on Steam that I think they can handle a few hundred/thousand open source games of varying quality.
about 10 years ago my wife and I wanted to make a card game something like a twist on cards against humanity or madlibs, that could be played in person or remotely. I built a back-end and protocol for organizing and conveying cards and such, and she got all the content put into the backend, and my buddy started on a mobile front end. my vision was to build it very abstractly, like a card game framework, so it could be any card game (and users could even make their own games). one mode was to use a tablet as the deck on the table and then everyone can hold their hand on their phones.
unfortunately, life got in the way, priorities changed, and we never finished it.
I had this idea that we could sell/license packs of card content by actual physical card game publishers... phase 10, uno, CAH, etc...
don't let the jerks here get you down, I for one appreciate this project (in spirit, haven't looked at the code) and might try to use it to finish our game one day.
thank you for sharing!
It has some very mild conceptual criticism from two top level comments.
However, I would never use it as a game. Ever.
One of my primary objectives playing card games with a group of people in a local setting is the social aspect. It means: no phones. I find it utterly asocial to sit there in a group of people all with their phones in their hand staring at the phone, then at some point getting distracted with doom scrolling instagram. Its so disturbing. Maybe I am old (40), I don't doubt that. Maybe I reach that point where I simply "don't get it" anymore. But I stand by it. It's not for me. Maybe I am alone, but I doubt that.
In this case, your cards are digital. Presumably you can choose some people who just want to play cards, not doomscroll instagram.
It's how you interact with the cards.
You are not staring in your cards. Maybe you are sorting the cards. You are observing what other people are doing with their cards. Sometimes you are just glancing at cards and putting them back on the table (e.g. poker).
Everything vanishes with a phone doing that for you. It takes away the magic of card games for me.
Again, I am strictly speaking of myself, but if I go with a group of people to play cards and then they pull out their phones, I'll simply leave the table and go home or do something else.
Electronic cards would allow you to play more widely (presumably we all don’t walk around with a deck in our pockets). But I don’t often get into spontaneous card games. They are usually planned and at a location with easy access to decks.
I would guess the assets[1] would be more legally problematic versus the game mechanics, which AIUI are only subject to patent claims, not copyright
1: https://github.com/xajik/thedeck/blob/86c2219d7c2aba47edd616...
This feels like a lot of work compared to popping down to the corner store for a pack of cards.
With apps players may get this functionality right out of the box.
A feature to allow users to create their own game rules for playing and sharing would be a great addition, IMO.
Neither of these points changes the mind of anyone who would rather play with the physical board game, but I think the ideal market for this is probably not that group.
20 seconds vs. 30 minutes to drive to the store and back.
This feels like a "neat, but why" project. Odds are the app is going to be difficult to use compared to a real deck.