Re:The chess bot on Delta Air Lines will destroy you (2024) ...
by teraflop on Monday January 12, 2026 @08:03PM
(#46596187)
I guess it's just a display bug, then? Though it's hard to imagine what kind of bug would lead the game state and the visual representation to get out of sync in that particular way.
Re:The chess bot on Delta Air Lines will destroy you (2024) ...
by throwaway38294 on Tuesday January 13, 2026 @01:59AM
(#46598027)
My guess is they only remove captured pieces on the moved-to square (maybe relying on an implicit capture by overwriting an array entry). This is probably easier than actually tracking pieces that get captured.
Re:The chess bot on Delta Air Lines will destroy you (2024) ...
by dominicrose on Tuesday January 13, 2026 @04:41AM
(#46598948)
The game is likely in javascript but because of this bug we know it's not using React because with React the programmer doesn't update the view, React does.
Re:The chess bot on Delta Air Lines will destroy you (2024) ...
by DoctorOW on Tuesday January 13, 2026 @06:19AM
(#46599575)
They're probably using an OSS chess engine in something like C++, but using HTML/CSS/JS for the interface. 90% moves could be represented by a chess board as a 2D array, checking the engine accepts it as a valid move, and then replacing what's on that square be it empty space or a now captured piece. Castling, pawn promotion, and en passant are the edge cases with en passant being the most obscure.
[0] https://drive.google.com/file/d/1Nyov4F7eWbT8uNoeclPY8uXVG6f...
[1] https://drive.google.com/file/d/1eEPBHqE5rpefE9gWflgS_hUwYGS...