Chess Written in GNU Sed
github.com
github.com
impressive feat with sed but not really worthy of the term "chess engine"
> 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.
* "A proof that Unix utility sed is Turing complete" https://catonmat.net/proof-that-sed-is-turing-complete
[0]: https://www.grymoire.com/Unix/Sed.html
Edit: That said, I don't even want to start dissecting the submitted code.
https://news.ycombinator.com/item?id=13451454
For sed, the best resource is likely the free "UNIX Bookshelf" from O'Reilly that can be found online; this contains a book specifically focusing on Sed and Awk.
https://freecomputerbooks.com/The-Unix-CD-Bookshelf-Version-...
If you're okay with gawk, most implementations ship with gawkextlib, which has readfile(), and you also have FIELDWIDTHS.
* https://learnbyexample.github.io/learn_gnused/
* https://learnbyexample.github.io/learn_gnuawk/
I also wrote TUI apps for interactive exercises (grep, sed, awk, etc): https://github.com/learnbyexample/TUI-apps
I've had some fun using awk to generate C# classes for an Ultima Online emulator.
impressive but the graphics need to be much bigger.
Would be good to have some indication that is is my move and show the move that the chess.sed made, would also be good to place all moves into chess.log :P
(I guess Sed is turing-complete?)
Not Implemented:
- Roque - Ceit not - Draw game - Human move correctness
What is Ceit not? Roque is French for castling, it appears.
This is wild.