I have a chess puzzle game.
I want to set up the wrong squares in an enum.
enum 1000H1wrong {11, 13, 15 21, 22};
Can I check to see if a number is in the ENTIRE enum 1000H1wrong.
if chesssquare == enum 1000H1wrong { }
same as this this:
if ((chesssquare == 11) || (chesssquare == 13) || (chesssquare == 15) || (chesssquare == 21) || (chesssquare == 22)) { }