I can add that even though I am an experienced programmer, this particular code means absolutely nothing to me. It is not written in any commonly used programming language, nor in universally understandable (by programmers...) pseudo-code.
I also doubt the usefulness of including a string for pasting into the diagram designer. The idea is to provide a diagram, not to create conditions where readers would have to do that themselves. Contributors might have to know what a diagram designer is (although I consider even that a blemish), but readers should be kept blissfully unaware of it.
Using different symbols for the same piece in the diagram and the description is a bad idea. Using an ordinary bishop symbol for a piece that is not a bishop is also a bad idea.
I can add that even though I am an experienced programmer, this particular code means absolutely nothing to me. It is not written in any commonly used programming language, nor in universally understandable (by programmers...) pseudo-code.
I also doubt the usefulness of including a string for pasting into the diagram designer. The idea is to provide a diagram, not to create conditions where readers would have to do that themselves. Contributors might have to know what a diagram designer is (although I consider even that a blemish), but readers should be kept blissfully unaware of it.
Using different symbols for the same piece in the diagram and the description is a bad idea. Using an ordinary bishop symbol for a piece that is not a bishop is also a bad idea.