I want to implement a 9x9 board game similar to chess, that has only rook-like moving pieces. Performance is crucial since I want to develope an AI also.
I read articles about bitboards, an efficient way to represent the game engine. There are several interesting articles about that, such as Chess bitboard implementation in Java and https://www.chessprogramming.org/Bitboards. Of course they refer to 8x8 boards, and they apply very well to 64bit CPUs, since it allows fast bitwise operations.
In this case I need a 9x9 board, so I expect to use at least two primitive data (64 bit + 32 bit, in order to represent the 81 squares I need).
// 9x9 board, possible representation (64bits+32bits)
000000000
000000000
000000000
000000000
000000000
000000000
000000000
000000000
000000000
+15 unused bits
Besides the more complicated logic I will need, is it worth to use bitboards in this case? Will I actually get a good gain in performance?