Hi!
I'm working on an IA in chess game and I need to memorise every possible move. For this I figured a good way was to create a 2D Array (if possible) or something like that, every line represents a possible move and each element in this line is an x or y position of the move. To make it clear here's an example:
Line 1 : {{oldXLocation; oldYLocation; newXLocation; newYLocation;},
Line 2 : {oldXLocation; oldYLocation; newXLocation; newYLocation;},
Line 3 : {oldXLocation; oldYLocation; newXLocation; newYLocation;},
Line 4 : {oldXLocation; oldYLocation; newXLocation; newYLocation;},
Line 5 : {oldXLocation; oldYLocation; newXLocation; newYLocation;}};
The problem is that I can't know how many lines I'll need as every turn the number of possible moves changes and I also need to get the number of lines the list have at the moment...
How can I do this?
Thank you very much!

