What exactly did you mean by "didn't work right"? What happens? Does it do anything at all?
I created a position in Extra Move Chess where the King was in check and had only one legal move. In this position, it never simulated a click on the King, it didn't automatically show the move it had available, and it continued to show the last move played. It was as though the code wasn't there. I was able to test that the code itself worked by placing an alert into the function it called, and this alert accurately reported the King's position, but once it called the function, nothing happened.
This is really extremely confusing, and should be stressed in the manual entry about cond.
It's covered in the documentation, but it could be covered better. I'm working on improving the documentation when I have spare time.
Is there in fact any reason to not use parentheses around the alternatives?
When they are strings or numbers, there should be no need to use parentheses.
I created a position in Extra Move Chess where the King was in check and had only one legal move. In this position, it never simulated a click on the King, it didn't automatically show the move it had available, and it continued to show the last move played. It was as though the code wasn't there. I was able to test that the code itself worked by placing an alert into the function it called, and this alert accurately reported the King's position, but once it called the function, nothing happened.
It's covered in the documentation, but it could be covered better. I'm working on improving the documentation when I have spare time.
When they are strings or numbers, there should be no need to use parentheses.