Creating a loop that is able to calculate positions via a 2d array?

Hi everyone. As you can tell by my question, I’m in a unique situation. I’m trying to finish a lab that involves setting up a game of chess by using a 2d array. I had some minor issues starting out but was able to fix those, but I am completely stuck on the last part.The instructions say to make a loop, which is suppose to use a calculation involving x and z values and multiply them by 1.1142857, that will center the chess pieces on the spaces on the chess board. My knowledge is limited on loops and arrays, and i cannot think of anything that will work. Is it possible that anyone can help me?
The code is in c#.
Also, here’s a link to the lab I’m doing (In case you try to help and my explanation doesn’t clarify or is too confusing.)
http://ksuweb.kennesaw.edu/~rgesick1/cse%201302c/Labs%20unity/lab03%20chess/cse1302_lab_3__2d_arrays.html

2955604–219251–BoardManager.cs (1.96 KB)

Making a method that has a for loop that looks at all the values in the Board array would be a good start.

Something like this might work, plus it could be called if you saved the game to repopulate a non-starting position board:

void AddPrefabs()
  {
       for (int x = 0; x < 8; x++)
       {
             for (int y = 0; y < 8; y++)
             {
                   if (Board[x, y] >= 0) // Check if there is a piece on the square
                   {
                          Instantiate(Resources.Load(GetPrefabName(Board[x, y]),
                                 new Vector3(x * 1.1142857, 0, y *1.1142857), 
                                 Quaternion.identity));
                    }
              }
        }
  }

Thanks for the help, it means a lot to me. Although the code didn’t work, you’ve cleared the path a bit for me to finding a solution that might work.