Hi,
Usually I understand how to use the conditional operator in C, but this one was tricky.
GEN_SLIDING_ATTACKS[..... is an two-dimensional array, while RANKS[... and FILES[... is two one-dimensional arrays.Code:if (GEN_SLIDING_ATTACKS[(RANKS[square]-1) < (FILES[square]-1) ? (RANKS[square]-1) : (FILES[square]-1)][state6Bit] & CHARBITSET[attackbit])
Could someone please explain to me where both the true and the false part in the statement ends up?
--
One