Is there any way to initialize an array when you define it? I'm trying to make a chess program and I want to store each of the possible moves that every piece can possibly make into an array (please don't tell me a better way to make the program, I'm sure that this isn't the best way, but I'd like to try it out anyways). Here's an example of what I mean, which doesn't work.
Global QueenXMove[55]={1,2,3,4,5,6,7,-1,-2,-3,-4,-5,-6,-7,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,2,3,4,5,6,7,-1,-2,-3,-4,-5,-6,-7,1,2,3,4,5,6,7,-1,-2,-3,-4,-5,-6,-7}; 16*4-8-1 Global QueenYMove[55]={0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,2,3,4,5,6,7,-1,-2,-3,-4,-5,-6,-7,1,2,3,4,5,6,7,-1,-2,-3,-4,-5,-6,-7,-1,-2,-3,-4,-5,-6,-7,1,2,3,4,5,6,7}