Main Page | Class Hierarchy | Alphabetical List | Class List | File List | Class Members | File Members

FCSFreecellAlgorithm Class Reference

Abstract class that sets up the functions needed to solve a freecell type game.

#include <FCSFreecellAlgorithm.h>

Inheritance diagram for FCSFreecellAlgorithm:

FCSFreecellSolvingAlgorithm FCSSimpleSimonSolvingAlgorithm FCSTalonSolvingAlgorithm List of all members.

Public Member Functions

virtual FCSStateSolvingReturnCodes Solve (FCSStateWithLocations *StateWithLocations, int Depth)=0
 Solve the game.
virtual FCSStateSolvingReturnCodes Resume (int Depth)=0
 Resume solving a game.

Protected Member Functions

void DeleteDerived (FCSDerivedStatesList *Derive)
 Helper function to delete a FCSDerivedStatesList.
virtual FCSStateSolvingReturnCodes RunTest (int TestNumber, FCSStateWithLocations *StateWithLocations, int Depth, int NumberOfFreeStacks, int NumberOfFreecells, FCSDerivedStatesList *DerivedStateList)=0
 Function to run each test on a state.

Detailed Description

Definition at line 36 of file FCSFreecellAlgorithm.h.


Member Function Documentation

virtual FCSStateSolvingReturnCodes FCSFreecellAlgorithm::Resume int  Depth  )  [pure virtual]
 

Parameters:
Depth to continue at depth
Returns:
Solving return code

Referenced by MainResume().

virtual FCSStateSolvingReturnCodes FCSFreecellAlgorithm::RunTest int  TestNumber,
FCSStateWithLocations StateWithLocations,
int  Depth,
int  NumberOfFreeStacks,
int  NumberOfFreecells,
FCSDerivedStatesList DerivedStateList
[protected, pure virtual]
 

Parameters:
TestNumber to be run
StateWithLocations is the state to run the test on
Depth is the current depth of the state
NumberOfFreeStacks is the current number of free stacks in the state
NumberOfFreecells is the current number of freecells in the state
DerivedStateList is the current derived state list
Returns:
Solving return code

Implemented in FCSFreecellSolvingAlgorithm, FCSSimpleSimonSolvingAlgorithm, and FCSTalonSolvingAlgorithm.

virtual FCSStateSolvingReturnCodes FCSFreecellAlgorithm::Solve FCSStateWithLocations StateWithLocations,
int  Depth
[pure virtual]
 

Parameters:
StateWithLocations is the start state
Depth is the starting depth
Returns:
Solving return code

Referenced by MainSolve().


The documentation for this class was generated from the following files:
Generated on Sat Nov 5 11:20:17 2005 for Cpp Freecell Solver by  doxygen 1.4.4