Stéphan Kochen
Follow

You can now challenge someone to game of over toots! castling.club/ 💪

It's actually a standalone server in the , implementing all by itself. 😃

@kosinus This is amazing! Who wants to play against me (noob level)?

@king challenge @hinterwaeldler

Don't worry, I'm quite the newbie myself. 😇

@hinterwaeldler Oh, haha, just remembered, it will never respond mid-thread unless it's an existing game. D'oh!

@kosinus
Do you need a castling.club account, or can you play from other instances?

@DialMforMara You can play from anywhere! (In fact, there are no accounts on castling.club, it’s kind of an instance with just the bot.)

@kosinus

Saw that you're wanting to play chess @hinterwaeldler and had just seen this post. So I figured I'd connect those thought trains.

@kosinus does it support long notation (Ng1-f3 instead of Nf3?)

@devurandom I don’t think it does, at the moment, but will look into it! 👍

@devurandom Turns out, it actually did already! But for fun, I just now taught it unicode, so you can use ♘ too. 😁

@kosinus oh, cool!

to be honest, i'm absolutely terrible at chess (the best i've ever done is beating an nes chess game at its lowest difficulty).

but it is interesting seeing the fediverse being used in interesting ways like that!

@devurandom So am I! And what I learned (in building this) was more rules than strategy. 😄

The point was definitely to learn about federation and ActivityPub.

@lulucybrelu j'ai vu ouais c'est justement ce qui m'a donné envie de continuer à apprendre sur Les Internets contre des bots. et du coup tu parlais de lichess c'est celui où j'ai fait joujou un peu et que j'm'ai fait défoncé la tronche x)

@ary j'aime bien faire des parties en mode correspondance, ça laisse le temps de jouer en mode chill mais psychologiquement je trouve ça plus agréable que de jouer contre l'ordi x)

Well, thank you @kosinus. ActivityPub + Chess looks like the perfect combination to destabilize my busy life. Released in August, that won't help either.

😜 This was my way to say Big Thank You and congratulations for this brilliant idea. Although it is true that I will have to keep it at bay!

@kosinus
that's old. @Michcioperz had a chess over toots implementation a few months ago. If only I knew where it was....

@Wolf480pl @Michcioperz That's cool! The chess thing was a vehicle to learn about federation / ActivityPub. So if it turns out I'm not original, I don't mind.

But it's also kinda fun, and now I'm curious about their impl, and how our UX differs and such! 😀

@kosinus @Wolf480pl what I did was a website displaying a game from a conversation, I think it died but I can bring it back once I'm home, gimme a few minutes

explaining fedichess Show more

@kosinus @Wolf480pl @a_breakin_glass if you wanna see how that one game ended, I clicked out all the way to the checkmate for you https://fedichess.m.atm.pl/game/2972
@kosinus @Wolf480pl @a_breakin_glass take note that me winning that was completely accidental because while I know chess marginally better than Wolf does, I don't have his smarts
@Wolf480pl @a_breakin_glass @kosinus you dragged it on for far too long and I felt urged to finish it quickly so I could go back to pretending to be studying for the two Maths exams I ended up failing
@Wolf480pl @kosinus @a_breakin_glass anyway I could try and expand fedichess to respond with a link to the board, and to make the board automatically update with correct moves, but I don't have the incentive. all in all, it was just a silly joke, and it didn't catch on
@Wolf480pl @a_breakin_glass @kosinus a version that doesn't work, yes, somewhere on my
no wait even that is probably not

@Michcioperz @Wolf480pl @a_breakin_glass That's really cool, though! And my impl is as much a joke, I guess? Just a fun way to learn. 😀

One of the things I considered was how spammy it'd be, and your method is far less so. But I also guess you can give more feedback with the middleman approach I took? (Though mine doesn't currently respond to bad moves or invalid input.)

Thanks for sharing! 😃

explaining fedichess Show more

@kosinus there is something similar for #ssb as well afaik.

@grainloom Forgive me, I don't know what SSB is! (Except for Smash Bros? That'd be hilarious. Like old Batman cartoons, but over toots: *KAPOW*BAM*CRASH*) 😄

@kosinus someone play me? I suck, just want to try it out

@pea Sorry about that! It appears Pleroma does things somewhat differently.

I made some changes just now. Could you try again?

@pea @Kat Ah, no, it should be mere seconds. Sorry friends! I thought I fixed everything, but wasn't able to test it fully, because my local testing Pleroma is only half working. Will dive in and get back to you in a bit!

@kosinus @Kat no problem, i also poke around with fedi software myself and know it can be a pain 😛

@CoronaCoreanici Haha, I don't know! I've never played Go myself.

I use a library made by someone else for the chess ruleset: github.com/jhlywa/chess.js

Other than that, castling.club implements all the fediverse stuff, message formatting, drawing the board, and the detail pages you see at castling.club itself.

@kosinus may one *request* a challenge if one does not have a particular victim in mind

@mona Hmm, not at the moment. Sides are currently chosen randomly. So the one who challenges is not necessarily the side that starts (white).

@kosinus ah. it would be convenient to register as a potential combatant open to be challenged rather than needing to specify an opponent. I have no idea who might be open to a game

@kosinus good job making this 💜

only thing, the chessboards seem to be displayed sideways? (including on your screenshot) - the bottom right square should be light, not dark

@kiilas Haha, you're quite right! I'll have to fix that. Thanks! 😅

@kiilas This should be all fixed now! I had my coordinate systems all mixed up, whoops. 🤪

@kosinus
Great activitypub app! I see no sources.. you planning to OSS it?

@rapnie Considering it! But I’m going to sit on that decision for a bit.

Sign in to participate in the conversation
Mastodon

Follow friends and discover new ones. Publish anything you want: links, pictures, text, video. This server is run by the main developers of the Mastodon project. Everyone is welcome as long as you follow our code of conduct!