are you trying to build something bughouse related? I would be more than willing to help develop something.
BPGN support?
That's the idea, Neroq, but unfortunately the API has almost zero support for bughouse. Participant, results, and final position, but no actual moves!
Unless chess.com improves their support, only simple applications will be possible. That's odd, since bug is by far the most popular variant on chess.com, but it is what it is.
I'm a full stack developer that's been throwing around bughouse applications in my head for years. I think there's some massive potential out there... just saying if they do support it i'm willing to help
@Neroq Bughouse game moves are available at https://www.chess.com/callback/live/game/[game_id]
e.g. https://www.chess.com/callback/live/game/10013434117 .
It's not part of the public API, e.g. the reply changes whether you are logged in, it's not available from browser bc of CORS policy etc. Also it uses the weird internal algebraic format of chess.com. Anyway I wired it together with fermy's bug.js, see
https://bmacho.github.io/bughouse-viewer/view.html?game_id=10013434117
It would be a relief if the same data, or the moves in pgn format were available through the public API, maybe in an aggregated format, let the people download all of their games at once.
@bmacho -- you're a hero. That's awesome.
Do you have docs on that crazy movelist format? All I can tell on first glance is that it isn't base64.
It's algebraic notation, but it uses single letter for squares, "mC" stands for e2e4 etc. Every move is denoted by 2 consecutive letters.
Squares denoted in order with letters from "a" to "?".
Drop symbols: Q@, N@, R@, B@, P@ --> &,-,*,+,=, then the letter of the target square
Promotion: First letter is the promoting pawn, the second letter is one of the letters in "{~}" "(^)" "[_]" "@#$", and it denotes pawn to move left/straight/right, and promote to q,n,r,b.
WhoAmI/Fermy's code is still available at http://bughouse.net/downloads.htm, and without BPGN support I don't think bug will ever be well-supported by the API. Best as I can tell right now, the API simply doesn't provide PGNs for bughouse games, meaning any sort of replay or analysis functionality simply can't be built.