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.
[ Parent
| on HN ]
There are no comments on this comment yet.