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

FCSRandomDFSSolvingAlgorithm< SolvingAlgorithmType > Class Template Reference

Random DFS method solver.

#include <FCSRandomDFSSolvingAlgorithm.h>

Inheritance diagram for FCSRandomDFSSolvingAlgorithm< SolvingAlgorithmType >:

FCSSoftDFSSolvingAlgorithm< SolvingAlgorithmType > List of all members.

Public Member Functions

 FCSRandomDFSSolvingAlgorithm (FCCommandLineArguments *CommandLine)
 Constructor with command line interface.
virtual ~FCSRandomDFSSolvingAlgorithm ()
 Destructor.

Protected Member Functions

 FCSRandomDFSSolvingAlgorithm ()
 Default constructor.
void InitFCSRandomDFSSolvingAlgorithm ()
 The "real" default constructor.
virtual FCSStateSolvingReturnCodes SolveOrResume (int Depth)
 Solve or resume solving a game.
virtual void IncreaseDFSMaxDepth ()
 Increase the max depth and the affected structures.

Protected Attributes

int * m_SoftDFSDerivedStatesRandomIndexesMaxSize
 Array of maximum sizes for the array of random derived states.
int ** m_SoftDFSDerivedStatesRandomIndexes
 Array of random dervied states.
FCSRandomm_RandomGenerator
 Random number generator.

Detailed Description

template<class SolvingAlgorithmType>
class FCSRandomDFSSolvingAlgorithm< SolvingAlgorithmType >

Definition at line 19 of file FCSRandomDFSSolvingAlgorithm.h.


Member Function Documentation

template<class SolvingAlgorithmType>
FCSStateSolvingReturnCodes FCSRandomDFSSolvingAlgorithm< SolvingAlgorithmType >::SolveOrResume int  Depth  )  [protected, virtual]
 

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

Reimplemented from FCSSoftDFSSolvingAlgorithm< SolvingAlgorithmType >.

Definition at line 95 of file FCSRandomDFSSolvingAlgorithm.h.

References FCSStateWithLocations::GetFreecellCardNumber(), FCSRandom::GetRandomNumber(), FCSStateWithLocations::GetStackLength(), FCSRandomDFSSolvingAlgorithm< SolvingAlgorithmType >::IncreaseDFSMaxDepth(), FCSSoftDFSSolvingAlgorithm< SolvingAlgorithmType >::m_DFSMaxDepth, FCSDerivedStatesList::m_NumberOfStates, FCSRandomDFSSolvingAlgorithm< SolvingAlgorithmType >::m_RandomGenerator, FCSSoftDFSSolvingAlgorithm< SolvingAlgorithmType >::m_SoftDFSCurrentStateIndexes, FCSSoftDFSSolvingAlgorithm< SolvingAlgorithmType >::m_SoftDFSDerivedStatesLists, FCSRandomDFSSolvingAlgorithm< SolvingAlgorithmType >::m_SoftDFSDerivedStatesRandomIndexes, FCSRandomDFSSolvingAlgorithm< SolvingAlgorithmType >::m_SoftDFSDerivedStatesRandomIndexesMaxSize, FCSSoftDFSSolvingAlgorithm< SolvingAlgorithmType >::m_SoftDFSNumberOfFreecells, FCSSoftDFSSolvingAlgorithm< SolvingAlgorithmType >::m_SoftDFSNumberOfFreestacks, FCSSoftDFSSolvingAlgorithm< SolvingAlgorithmType >::m_SoftDFSTestIndexes, FCSDerivedStatesList::m_States, FCSStateWithLocations::m_Visited, and FCSStateWithLocations::m_VisitIterations.


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