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)?

@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.

@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!

@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*) 😄

@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 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.

@kosinus
Oh! Cool. I'd love to play @lostnbronx or @klaatu a game of chess online like this.

Not that I'd be able to make more than one or two moves a day, but it would be cool.

@kosinus predicting people just using the highest A.I. setting from Windows Chess against each other.

@alice I wouldn’t mind if someone wrote a bot you could challenge. Though two fully automated players against each other should probably be stopped. 😉

@kosinus Fascinating. There must be a whole world of games possible over .

@neilgall This worked a lot better than I expected! Someone also mentioned Go, but I’ve never played it. 🙂

@kosinus This is cool, is there source for it? It's reminding me of old Mafia bots on IRC

@aeb No, but I’m considering open sourcing it! Just sitting on that decision for a bit. 😀

@kosinus Wow!

Not expecting anything from you, just throwing out a random idea:

Would be cool to have a privkey in a browser addon, and sign your mastobuddies' keys, and then play e2e encrypted chess with each other. Just because we can. You could use your existing social network a la PGP WoT for ranking, and view it from your personal network's perspective.

@tim That’s wild, haha. Sounds like it would need a client impl of chess, though? Or keep the bot in the loop for everything. I wouldn’t be surprised if this was already done over email. 🙂

@kosinus Probably would require client impl, yes. Perhaps it could run in the browser as well, through browserify (for example), and use Mastodon to propagate messages (if max. characters doesn't limit this).

@kosinus it's not working :( nothing happens after the challenge. What do I wrong? Is the bot down or do I need to follow it?

@kosinus Curious, I can't tell @king@castling.club on the fediverse 😢

@Sebbaz Sorry about that. I can’t really look into it right now, but will take a look at the logs soon. It should in general work fine with Mastodon, but I’ve heard of specific instances fail before. 😕

@kosinus Hey ! Oh, in fact it was an instance problem.

The august, 5th there was a activitypub push problem. The bot King couldn't reply, it doesn"t receive my request 🐰

Very good job !

@Sebbaz Cool, thanks!

Might be cool to add a public federation log, so people can debug issues themselves. 😀

@kosinus just saw this on lobste.rs. It's an incredible idea!

I was thinking today that I wanted to make something interactive on the #fediverse and its serendipitous that I stumbled upon this!

Sign in to participate in the conversation
Mastodon

Server run by the main developers of the project 🐘 It is not focused on any particular niche interest - everyone is welcome as long as you follow our code of conduct!