06-17-2022, 04:58 PM
There must have been a big misunderstanding (on my side), when I was asking in the first post of this thread if there was a way ".. to store pre-calculated DATA (in arrays or something) ? "
That happened because at the very start of my encounter with ludii I tested some things regarding arrays, and it didn't work.
But that probably was only because i had no experience at all with the syntax or just had a typo in it..
Because now I found: (define "Data" (array {0 1 2 3 4 5 6 7 8 9 .. }) ) and then later (arrayValue "Data" index: 123)) does indeed work pretty fine!
so nothing more needed here (bc even 3D arrays with known dimensions can easily be encoded in a 1D array), except:
What's the MAX_ARRAY_SIZE ? ('Integer.MAX_VALUE' on Java, i hope ; )
That happened because at the very start of my encounter with ludii I tested some things regarding arrays, and it didn't work.
But that probably was only because i had no experience at all with the syntax or just had a typo in it..
Because now I found: (define "Data" (array {0 1 2 3 4 5 6 7 8 9 .. }) ) and then later (arrayValue "Data" index: 123)) does indeed work pretty fine!
so nothing more needed here (bc even 3D arrays with known dimensions can easily be encoded in a 1D array), except:
What's the MAX_ARRAY_SIZE ? ('Integer.MAX_VALUE' on Java, i hope ; )