/usr/include/freecell-solver/fcs_enums.h is in libfreecell-solver-dev 3.4.0-1.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 | /* Copyright (c) 2000 Shlomi Fish
*
* Permission is hereby granted, free of charge, to any person
* obtaining a copy of this software and associated documentation
* files (the "Software"), to deal in the Software without
* restriction, including without limitation the rights to use,
* copy, modify, merge, publish, distribute, sublicense, and/or sell
* copies of the Software, and to permit persons to whom the
* Software is furnished to do so, subject to the following
* conditions:
*
* The above copyright notice and this permission notice shall be
* included in all copies or substantial portions of the Software.
*
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
* EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES
* OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
* NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
* HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
* WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
* OTHER DEALINGS IN THE SOFTWARE.
*/
/*
* fcs_enums.h - header file for various Freecell Solver Enumertaions. Common
* to the main program headers and to the library headers.
*
*/
#ifndef FC_SOLVE__FCS_ENUMS_H
#define FC_SOLVE__FCS_ENUMS_H
#ifdef __cplusplus
extern "C" {
#endif
enum
{
FCS_ES_FILLED_BY_ANY_CARD,
FCS_ES_FILLED_BY_KINGS_ONLY,
FCS_ES_FILLED_BY_NONE
};
enum
{
FCS_SEQ_BUILT_BY_ALTERNATE_COLOR,
FCS_SEQ_BUILT_BY_SUIT,
FCS_SEQ_BUILT_BY_RANK
};
enum
{
FCS_TALON_NONE,
FCS_TALON_GYPSY,
FCS_TALON_KLONDIKE
};
enum
{
FCS_STATE_WAS_SOLVED,
FCS_STATE_IS_NOT_SOLVEABLE,
FCS_STATE_ALREADY_EXISTS,
FCS_STATE_EXCEEDS_MAX_NUM_TIMES,
FCS_STATE_BEGIN_SUSPEND_PROCESS,
FCS_STATE_SUSPEND_PROCESS,
FCS_STATE_EXCEEDS_MAX_DEPTH,
FCS_STATE_ORIGINAL_STATE_IS_NOT_SOLVEABLE,
FCS_STATE_INVALID_STATE,
FCS_STATE_NOT_BEGAN_YET,
FCS_STATE_DOES_NOT_EXIST,
FCS_STATE_OPTIMIZED,
FCS_STATE_FLARES_PLAN_ERROR
};
enum
{
FCS_PRESET_CODE_OK,
FCS_PRESET_CODE_NOT_FOUND,
FCS_PRESET_CODE_FREECELLS_EXCEED_MAX,
FCS_PRESET_CODE_STACKS_EXCEED_MAX,
FCS_PRESET_CODE_DECKS_EXCEED_MAX
};
#define FCS_METHOD_NONE -1
#define FCS_METHOD_HARD_DFS 0
#define FCS_METHOD_SOFT_DFS 1
#define FCS_METHOD_BFS 2
#define FCS_METHOD_A_STAR 3
#define FCS_METHOD_OPTIMIZE 4
#define FCS_METHOD_RANDOM_DFS 5
#ifdef __cplusplus
}
#endif
#endif /* FC_SOLVE__FCS_ENUMS_H */
|