18 ms·
it says in the comments that it does not check correctness. impressive feat with sed but not really worthy of the term "chess engine"
by demondemidi 3y ago
it 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.