LXer: Write a chess game using bit-fields and masks
by LXer from LinuxQuestions.org on (#5NPH4)
Published at LXer:
Let[he]#039[/he]s say you were writing a chess game in C. One way to track the pieces on the board is by defining a structure that defines each possible piece on the board, and its color, so every square contains an element from that structure.
Read More...
Let[he]#039[/he]s say you were writing a chess game in C. One way to track the pieces on the board is by defining a structure that defines each possible piece on the board, and its color, so every square contains an element from that structure.
Read More...