Just deployed Lightning-chess game
I'm really happy with it, everything that should work does work
It's not perfect but the core logic is there, would appreciate any thoughts or bug reports from fellow players and/or builders
Some wlth's are...
- When you're in check, I didn't build a popup to tell you, but the logic is correct, you can only move your king out of check or cover with another piece, a noob might think the pieces are frozen
- The letter annotation A-H is not quite clear enough and on mobile, the UI spaghettifies it into the wrong position, again an experienced player knows how Algebraic Notation works
- Thinking now, a 'last 20 games played, who won, lost, by checkmate, timeout would be nice, fetching the events etc is possible, although I'm not sure the best resource to scrape that from, it looks like nostr.band is down
It's hosted on nsite.run the Nostr blossom server, I didn't realise that root site would publish it under my npub, so unfortunately the web address doesn't have any indication of it's description, I guess I could deploy again in the future changing the vite.config.ts
npub1s3wyj29cnhkkh6wfqs0nh5zpwyys2vsw237gqzdu2pnzs74njncs9cdpmg.nsite.run/
You might need to copy that into the browser, as SN is mistaking it for a note
I had quite a battle with offer publish, there are so many variables when it comes to creating events on relays, it can leave wide open to spam attacks and the lobby area where games are held can get full
So my advice would be, play a specific npub, send your friend a challenge
As far as lightning goes, there is no gambling etc, in the side menu you can create a Ln invoice and zap anyone you like, I could have built zap a specific move or upon game over but that's a bit too complex for me
@denlillaapan give it a go, there's no single player, you'll need a friend on Nostr to play, perhaps @Dash_1971 Remembering their post about Chess this month
@justin_shocknet lmk what you think from a builders pov
And any SN chess fans, devs who would like to take a peek
me, me, me -- challenge ME!
I'm here, sitting around waiting to be challenged.
npub1y0gaju64gxtw2utz9dud9ju9nlg7k4u7yq5exkxrcw85myplzdlsf5jxa0
I went for a sauna, im sure you can appreciate I cannot miss my sauna!
if you want a game we'll need to be relatively communicative because theres a 5min cut off for offers to prevent spam
lmk and ill send you a challenge
Beautiful!
Maybe later .. I just burned 100 ratings on chesscom. Kind of tilted and annoyed w myself
sure, lets leave until we're both ready!
sitting here shitposting on SN, transcribing notes, and waiting for dinner. YOU READY TO GET WHOPPED, SIR?!
yes
right, so every move is a Nostr event?? That's very frustrating... can't be fast games, then
highlight last move, need to add that
its you who is slow ser lol
I'm just about to head out, but I will!!! another shortsight from me is the offers are not marked with who's ending it doh, you only realise after accepting
***** updated offer to show sender *****
Looking forward to trying this out. Probably on a burner npub as my ego is far too fragile to lose publicly to fellow Stackers.
I like that you can challenge another npub.
It would be cool if the lightning element was more closely tied to the game (maybe when challenging an npub, if you could attach a cost or a payment).
But I like the concept and I'd like to see more lightning games. Cool to see people working on it.
I would like that kind of game on @sn, the sort that you can be playing between pages as you read different post and Yes! sats per move (if it is Chess).
The winner take the zapped sats.
I didn't want to get involved with gambling, a) because gambling sats is stupid and b) i dont want the feds throwing me in the slammer lol
It's not gambling, more like competing
This would be a great add-on
Yes definitely hear that, I should integrate Ln more, perhaps in time I can think of a way to make that happen
The side menu creates a Ln invoice which you need to come out to scan with wallet and all a bit of a faff
High level sites like SN create all that seamlessly and now I can appreciate how much it takes to do it!
Digging the progress, progress is everything... "Time carries the most weight". Keep it up.
I think a handy low-effort feature that would help harden it would be a general lobby of sorts so you can find other nostr users open to a game, open challenges. Chess dot com has good asynchronous play, which might be a good fit for nostr... could use bitcoin block height for a timer over long asynchronous games.
Completing games would also be a good Web-of-Trust signal, I think you could build a bit of network effect here by the service attesting to outcomes.
For Gambling/LN I think you could avoid getting involved in it yourself and let a challenge specify a 3rd user to act as an escrow... that's something I've been thinking about how to have ShockWallet/Lightning.Pub users do... basically any shockwallet user advertising themselves as an escrow agent. Haven't implemented but I can move it up a burner if that's something you may want to add.
Very cool ideas, the blockheight idea is brilliant, love it
lol no JS not just yet, thank you so much for the offer, its a lot out of my reach atm, im just amazed i got this thing off the ground, baby steps for me