Live data from Hacker News

Static Chess

val.town

111–120 of 127 posts

Re: Static Chess

#111
post #98
post #85

Earlier quoted context omitted.

Technically speaking, it would require ~ 4.8 * 10^44 pages to cover all legal chess positions [1]. But they're happy to serve utterly illegal positions like https://chess.maxmcd.com/rnbqkbnr/qqqqqqqq/8/8/8/8/QQQQQQQQ/... as well. [1] https://github.com/tromp/ChessPositionRanking

The above illegal position example was a checkmate in one, this one is more fair: https://chess.maxmcd.com/rnbqkbnr/qqqqqqqq/qqqqqqqq/8/8/8/QQ... ;)

OK, this one is definitely more fair: https://chess.maxmcd.com/rnbqkbnr/qqqqqqqq/qqqqqqqq/qqqqqqqq...

Re: Static Chess

#112

I did a static chess page myself some time ago but with p2p connection (using webRTC) so you can play with a friend: - [Try it]( https://afauroux.github.io/chess/ ) - [Fork it]( https://github.com/afauroux/chess )

I really like the sound effects. Especially check.

Re: Static Chess

#113
post #101

I’m frankly kind of bummed that this isn’t fully static chess. As in every possible move is a pre-rendered html file on a server somewhere. This is more akin to how Yahoo Games and other chess sites worked in the early aughts.

I think a compromise would be more practical: every position that has actually occurred as a pre-rendered html file, with novel positions generated dynamically.

Re: Static Chess

#114

I did a static chess page myself some time ago but with p2p connection (using webRTC) so you can play with a friend: - [Try it]( https://afauroux.github.io/chess/ ) - [Fork it]( https://github.com/afauroux/chess )

I really like the sound effects. Especially check.

Thanks, I made them with GarageBand and Audacity, I think. The check sound is made from a recording of my girlfriend with added echoes ;-)

Re: Static Chess

#115
post #79

Earlier quoted context omitted.

I admit that while I do regularly play chess, I'm not super well versed in either FEN nor Chess960. That said, I've been trying to figure out why you would need a different notation for Chess960 for half an hour now, and I just can't figure it out. All explanations I'm seeing just make some vague mention about ambiguity in the regular notation for Chess960, but I, personally, can't think of a situation in which the r…

One of the rooks might move over to the other side during the course of the game, and then it's no longer unambiguous which one is the castling rook. E.g., if you have your king on e1, a rook on f1 and another one on g1… can you castle if the f1 rook moves? Can you castle if the g1 rook moves? Just “kingside” won't tell you the difference.

the king always has to be in between rooks in chess960

Re: Static Chess

#116

Nice that it detects valid moves, But it doesn't know about checkmate? https://chess.maxmcd.com/r1b1kRnr/p1ppB2p/n2P2p1/8/7P/1p6/PP... Should say checkmate?

It also doesn't allow en passant

Wow, I’ve never even heard of en passant. These kind of niche obscure rules seem antithetical to the elegant nature of chess.

Re: Static Chess

#117

Was just playing around a little and found a bug. In the following position it won't let me play F8. https://maxm-staticchess.web.val.run/rnb1kbnr/pp2P1pp/3p4/q1...

It's not a bug. f8=X is illegal since white is in check from the Queen on a5.

Sure is. That what you get for just clicking around randomly and not paying attention to what is where.

Re: Static Chess

#118
post #115
post #79

Earlier quoted context omitted.

One of the rooks might move over to the other side during the course of the game, and then it's no longer unambiguous which one is the castling rook. E.g., if you have your king on e1, a rook on f1 and another one on g1… can you castle if the f1 rook moves? Can you castle if the g1 rook moves? Just “kingside” won't tell you the difference.

the king always has to be in between rooks in chess960

As a starting position, sure.

But if you have a later board state, with two rooks on one side: how do you know which one is still eligible to castle?

Re: Static Chess

#119

I did a static chess page myself some time ago but with p2p connection (using webRTC) so you can play with a friend: - [Try it]( https://afauroux.github.io/chess/ ) - [Fork it]( https://github.com/afauroux/chess )

I noticed a weird bug where sometimes the game will auto-move for a player. In particular, this seems to happen when one queen captures a piece, and the opposing side has the ability to capture that queen with their queen, the game automatically makes the 'queen takes queen' capture.

Re: Static Chess

#120

Earlier quoted context omitted.

It also doesn't allow en passant

Wow, I’ve never even heard of en passant. These kind of niche obscure rules seem antithetical to the elegant nature of chess.

This and castling strike me as the kind of rules where a King like Henry VIII was losing and decided to castle for the first time ever and his opponent was too scared to say anything to stop it.
Post reply on HN