I have two arrays for a chess variant I am coding in java...I have a console version so far which represents the board as a 1D array (size is 32) but I am working on making
i*8+j (assuming 8 is the horizontal width)
i*8+j