Changeset View
Changeset View
Standalone View
Standalone View
patsolve/yukonsolver.h
Show All 21 Lines | |||||
22 | class Yukon; | 22 | class Yukon; | ||
23 | 23 | | |||
24 | 24 | | |||
25 | class YukonSolver : public Solver<7> | 25 | class YukonSolver : public Solver<7> | ||
26 | { | 26 | { | ||
27 | public: | 27 | public: | ||
28 | explicit YukonSolver(const Yukon *dealer); | 28 | explicit YukonSolver(const Yukon *dealer); | ||
29 | int good_automove(int o, int r); | 29 | int good_automove(int o, int r); | ||
30 | int get_possible_moves(int *a, int *numout) Q_DECL_OVERRIDE; | 30 | int get_possible_moves(int *a, int *numout) override; | ||
31 | bool isWon() Q_DECL_OVERRIDE; | 31 | bool isWon() override; | ||
32 | void make_move(MOVE *m) Q_DECL_OVERRIDE; | 32 | void make_move(MOVE *m) override; | ||
33 | void undo_move(MOVE *m) Q_DECL_OVERRIDE; | 33 | void undo_move(MOVE *m) override; | ||
34 | int getOuts() Q_DECL_OVERRIDE; | 34 | int getOuts() override; | ||
35 | unsigned int getClusterNumber() Q_DECL_OVERRIDE; | 35 | unsigned int getClusterNumber() override; | ||
36 | void translate_layout() Q_DECL_OVERRIDE; | 36 | void translate_layout() override; | ||
37 | void unpack_cluster( unsigned int k ) Q_DECL_OVERRIDE; | 37 | void unpack_cluster( unsigned int k ) override; | ||
38 | MoveHint translateMove(const MOVE &m) Q_DECL_OVERRIDE; | 38 | MoveHint translateMove(const MOVE &m) override; | ||
39 | 39 | | |||
40 | void print_layout() Q_DECL_OVERRIDE; | 40 | void print_layout() override; | ||
41 | 41 | | |||
42 | /* Names of the cards. The ordering is defined in pat.h. */ | 42 | /* Names of the cards. The ordering is defined in pat.h. */ | ||
43 | 43 | | |||
44 | card_t O[4]; /* output piles store only the rank or NONE */ | 44 | card_t O[4]; /* output piles store only the rank or NONE */ | ||
45 | card_t Osuit[4]; | 45 | card_t Osuit[4]; | ||
46 | 46 | | |||
47 | const Yukon *deal; | 47 | const Yukon *deal; | ||
48 | }; | 48 | }; | ||
49 | 49 | | |||
50 | #endif // YUKONSOLVER_H | 50 | #endif // YUKONSOLVER_H |