Changeset View
Changeset View
Standalone View
Standalone View
patsolve/fortyeightsolver.h
Show All 21 Lines | |||||
22 | #include "patsolve.h" | 22 | #include "patsolve.h" | ||
23 | 23 | | |||
24 | class FortyeightSolverState; | 24 | class FortyeightSolverState; | ||
25 | 25 | | |||
26 | class FortyeightSolver : public Solver<10> | 26 | class FortyeightSolver : public Solver<10> | ||
27 | { | 27 | { | ||
28 | public: | 28 | public: | ||
29 | explicit FortyeightSolver(const Fortyeight *dealer); | 29 | explicit FortyeightSolver(const Fortyeight *dealer); | ||
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 | bool checkMove( int from, int to, MOVE *mp ); | 39 | bool checkMove( int from, int to, MOVE *mp ); | ||
40 | bool checkMoveOut( int from, MOVE *mp, int *dropped ); | 40 | bool checkMoveOut( int from, MOVE *mp, int *dropped ); | ||
41 | void checkState(FortyeightSolverState &d); | 41 | void checkState(FortyeightSolverState &d); | ||
42 | 42 | | |||
43 | void print_layout() Q_DECL_OVERRIDE; | 43 | void print_layout() override; | ||
44 | 44 | | |||
45 | const Fortyeight *deal; | 45 | const Fortyeight *deal; | ||
46 | bool lastdeal; | 46 | bool lastdeal; | ||
47 | 47 | | |||
48 | card_t O[8]; /* output piles store only the rank or NONE */ | 48 | card_t O[8]; /* output piles store only the rank or NONE */ | ||
49 | card_t Osuit[8]; | 49 | card_t Osuit[8]; | ||
50 | 50 | | |||
51 | }; | 51 | }; | ||
52 | 52 | | |||
53 | #endif // FORTYEIGHTSOLVER_H | 53 | #endif // FORTYEIGHTSOLVER_H |