To store pieces inside an array of 64 squares (inside a one-dimensional chessboard), I would simply convert squares like:
This order would be natural for me, as we can then easily loop and display each square to represent the board on a document, having at the bottom the white perspective.
But looking at some documents on the computer chess, such as the 0x88 board representation, it seems that the standard way to order pieces in rather this:
Do you think I should definitivly use this same ordering?
Or would it make more sense to adopt the more natural order (
0 is a8)?