3 ms·
I played a game where I moved my bishop to c4 and queen to h5 while Black was busy advancing h and g pawns (and trading its rook for my knight on h3), and when
by tromp 3y ago
I played a game where I moved my bishop to c4 and queen to h5 while Black was busy advancing h and g pawns (and trading its rook for my knight on h3), and when I thought I played the final move Qxf7 checkmate, it calmly played ... Kxd8
I guess making illegal moves is its only way of acknowledging defeat.
- demondemidi 3y agoit says in the comments that it does not check correctness. impressive feat with sed but not really worthy of the term "chess engine"
- tromp 3y agoThe comments say that > Human move correctness is Not Implemented. Which suggests that the script only makes correct moves. My example shows that's not true when there are no valid moves.
- kazinator 3y agoThat's the same as a typical Unix script cobbed together with these tools. When the input data isn't of the expected form (a regex doesn't match, or matches in the wrong place, or whatever), there is often still a nonfailing behavior of some kind.
- wrp 3y agoIn the late 1970s, I bought a chess computer at J. C. Penney, the one in a brown plastic case with the chessboard printed on top and a keypad to the right with a red LED display. I returned it after about a week because it cheated. Whenever I moved to take its King/Queen, it would call an illegal move, and claim that its King/Queen was on the other side of the board. I've wondered what glitch in programming would create that behavior.