The world is of size 8(width)*4(height). I can successfully place the chess pieces in one complete horizontal line. But how to place the pieces on every line and cover the whole world by using either "while" or "doWhile" or "for" loops? (nested loop is not allowed in this case)

