In short: the most effective and professional way is to use Bitrates.
Basically, there are 3 ways to represent a frequently used chessboard:
8x8 2-dimensional array: Slow but easy to maintain
10x12 1-dimensional array: Faster, a bit trickier
Bitboards:
, , Stockfish Rybka. , 64- uint , . wiki google = > .