I'm sorry, but I can't conceive of a FreeCell solver that runs in
anywhere near 200-400 lines -- try 10+ times that spread over multiple
source files. My .h file is 125 lines, and it's nothing fancy.
I'm in the process of writing an analysis program for output produced
from my solver. So far, it's 200+ lines and I still haven't accumulated
any statistics.
Proper revision maintenance is going to be critical as you discover new
issues while writing your solver.
I can't help with your C++ array-within-a-structure problem.
There is a lot of hard work in writing a FreeCell solver! You need to
be really comfortable with your compiler and with segregating your
source code into logical and manageable blocks.
Finally, I want to update the information I wrote about supermoves. My
equation is correct ... but there's a catch. There must be at least one
empty free cell before any multi-card move is allowed. Empty columns
won't get you there by themselves! I don't know why.
HELSER ERIC JOSEPH wrote:
> Man, I'm having the hardest time ever on this program. I think I have
> three or four versions of this program written, each one a
> modification of previous types just so I didn't have to start over if
> I screwed up too badly.
>
> In Michael Mann's solver, and most others I downloaded, the program is
> usually extremely lengthy. Do you guys think it is possible to write a
> solver that works correctly using only about 200-400 lines, and no
> external files (other than necessary includes)? I think I only had
> about a handful of functions, too. I'm not sure why you'd need multple
> .c files and extra .h files to include...
>
> Apparently C++ won't let me create arrays inside of structs for some
> stupid reason...
>
>
> -----Original Message----- <snip>
Received on Mon Nov 17 2003 - 21:10:36 IST