Check out Grant Acedrex, our featured variant for April, 2024.


[ Help | Earliest Comments | Latest Comments ]
[ List All Subjects of Discussion | Create New Subject of Discussion ]
[ List Earliest Comments Only For Pages | Games | Rated Pages | Rated Games | Subjects of Discussion ]

Single Comment

Play-test applet for chess variants. Applet you can play your own variant against.[All Comments] [Add Comment or Rating]
💡📝H. G. Muller wrote on Mon, Jan 11, 2021 10:57 PM UTC in reply to Fergus Duniho from 06:31 PM:

@Fergus: Thanks for the explanation; this will help me avoid many errors in the future! I am used to C, where boolean values are cast to the numbers 0 and 1, rather than the other way around.

Remember that the bug had to do with using a string literal as though it were a constant, not with using == instead of ===.

No, I used the string literal as a string literal; perhaps I expressed it wrong because I am not used to GAME-code terminology. I wanted to know if the variable 'hit' contained the text "Xdummy". The === operator would have done that.