I want to write a chess engine and I've decided to use the bitboard representation of the board. I've done some reading and I found out that the most efficient way to do it is to use 64-bit long variables and bit manipulation. However I also know that there is a thing called std::bitset
which, if my understanding is correct, does exactly the thing I need it to.
My question is: Is it better to use the std::bitset
in order to have code that is a little slower but easier to read and write or is it better to focus solely on the performance?