Huge arrays - around 46233 elements
I wrote a simple tick-tack-toe program which would go through all the
possible moves it could make and decide which would make it more likely
that the other player would not win. I need every possible combanation of
1, 2, 3, 4, 5, 6, 7, and 8 elements. So, origonally I calculated it while
the program was running, but that took way too long and about 98% of the
calculations weren't used. So I calculated all the info in advance and then
put it into a constant in the program. When I run the program, it says "sub
program too large" or something like that. It didn't even get to the code
yet! Anyway, the whole program eas about 49,000 lines. Is this because I am
using the Public Domain Edition or does Euphoria not support such large
arrays (about 46233)? Could I store this info in a file and then read it
when the program loads?
JJProg the Techie
JJProg at cyberbury.net
http://members.aol.com/jjfwiz/index.htm
|
Not Categorized, Please Help
|
|