Hi, I'm supposed to make a program to solve a Board Game similar to a Chess Board. I want to store the information about pieces and their possible moves, during the game, in an integer matrix so each piece will have stored in an single integer all the information about it.
The question is... how can I read/write small parts of an integer? ... something like... the first two digits will tell what kind of piece is occupying a particular position in the matrix, and the next three digits will tell the possible moves it can do.
ty in advance...