> That's what I wonder about. I can see odd/even useful for a chessboard and 
> for highlighting every odd line in a table. And that's it, 2 use cases are 
> known to me. :-)

For me it occurs nearly in each module: When working with trees, like the RTree 
or a MinMaxHeap actions depend on the fact that current depth of level is odd 
or even. For chess we need it really often, not only for board position and 
active player color, but also for depth in search tree, odd/even determines if 
player is white/black. In geometric data processing odd/even is an important 
query, when we determine the intersection of shapes, as line intersection with 
polygon in a simple case. Or for graphics, odd/even winding number determines 
filled or unfilled areas.

But I understand, for compiler and web development even/odd is rarely used :-)

Reply via email to