Hi tinx!
On Saturday 26 May 2007, tinx82 wrote:
> Hi everyone,
>
> I'm new here :)
>
> And I'm just wondering whether there's anyone that could help me
> making similar program like this one http://notabdc.vip.sina.com/
> (FreecellTool) ?
FreecellTool has an awful interface. Please look at Freecell Pro for a much
better one:
http://www.rrhistorical.com/rrdata/Fcpro65/
You can find its source code here:
http://fc-solve.berlios.de/don_woods.html
>
> I would like to learn more about Delphi in particular SCAR
> (http://freddy1990.com/) to do this sort of things.
> As I'm not familiar with C++ :(
Most Freecell solvers (and the GUI program Freecell Pro) are written in ANSI
C, not in C++. ANSI C is simpler than C++ (which no one really knows) and
more elegant. Recommended books are:
{{{{{{{{{{{
Well, you should just grab a good C book or tutorial. A Technion professor (
who has reviewed all C books recommended those:
http://www.cs.technion.ac.il/users/yechiel/CS/C+C++books.html
I think "A Book on C" is the most accessible:
http://www.soe.ucsc.edu/~pohl/abc4.html
http://www.amazon.com/Book-C-Programming-4th/dp/0201183994
}}}}}}}}}}}
>
> Btw, until now I've managed to
> - check a game window opened / not
> - compare bitmap with the card itself so I would be able to tell the
> positions of the cards.
>
> Now I'm wondering how to solve the game :D
> I've read about Breadth-First Search Algorithm
> (http://en.wikipedia.org/wiki/Breadth-first_search) but I wonder how
> to implement it...
See:
http://fc-solve.berlios.de/docs/
And naturally, if you want to know to really know how everything, works - read
the source code. ANSI C is very similar to Pascal, except from a few key
differences in syntax mostly. You can always call an external library (such
as Freecell Solver) from Pascal by at most writing some wrapper functions. So
you don't need to implement everything yourself.
If you have access to a C compiler for Windows, such as MS DevStudio, GNU gcc
(an excellent, freely available, open-source one), or Borland C++, then you
can easily build Freecell Solver (or any other Freecell-solving library and
use it). The source code and binaries for Freecell Solver are available under
the Public Domain, and as such have no restrictions whatsoever on their use.
Note that I did not write extensive documentation for documenting how to
interact with the FCS library (at least not yet). But you can easily find out
using a minimal knowledge of C and reading the sources of the command line
applications.
>
> Any help would be appreciated :)
>
Hope it helps,
Shlomi Fish
---------------------------------------------------------------------
Shlomi Fish shlomif_at_iglu.org.il
Homepage:
http://www.shlomifish.org/
If it's not in my E-mail it doesn't happen. And if my E-mail is saying
one thing, and everything else says something else - E-mail will conquer.
-- An Israeli Linuxer
Received on Sat May 26 2007 - 05:43:29 IDT