Ok.. Sorry for treating you like a noob.
I'm sorry, but I cant give you any code. Dont think I'm selfish, but I really want to get mine done. I will tell you how to do it though.
First of all, you need to know the rules of chess. I mean not just how to play it, but really know the rules. Search for "rules of chess" on google or similar. Of course, you probably know how to play chess if you are making a chess game.
You can make your array 2 ways.
1) Have a (32,2) array,the first number being the piece, the second being file (X), and Rank (Z).
2) Have an (8*8) array, the value of each piece at each coordinate.
Which ever is easiest for you. I use #1
Every loop, change the array according to user input or computer. Now say that your board is a 8*8 grid, which is really an 80*80 plain. You would take the value of file and rank and multiply it by 10 because 80/8=10. Then position the object there.
Pretend you are playing chess.
You have the board:
_ _ _ _ _ _ _ _
|_|_|_|_|_|_|_|_|
|_|_|_|_|_|_|_|_|
|_|_|_|_|_|_|_|_|
|_|_|_|_|_|_|_|_|
|_|_|_|_|_|_|_|_|
|_|_|_|_|_|_|_|_|
|_|_|_|_|_|_|_|_|
|_|_|_|_|_|_|_|0|
The exact center of the board is 0,0.
The players right rook (0) would be at 35,-35 because it's at file 8, rank 1, so 8*10-45 = 35 and 1*10-45 = -35. You need to multiply by 10 and subtract 45, to convert chess position to 3D position.
Hope that helps.
"All programmers are playwrites and all computers are lousy actors" -Anon