Changeset View
Changeset View
Standalone View
Standalone View
patsolve/spidersolver.h
Show All 20 Lines | |||||
21 | #include "patsolve.h" | 21 | #include "patsolve.h" | ||
22 | class Spider; | 22 | class Spider; | ||
23 | 23 | | |||
24 | 24 | | |||
25 | class SpiderSolver : public Solver</* 10 play + 5 redeals*/15> | 25 | class SpiderSolver : public Solver</* 10 play + 5 redeals*/15> | ||
26 | { | 26 | { | ||
27 | public: | 27 | public: | ||
28 | explicit SpiderSolver(const Spider *dealer); | 28 | explicit SpiderSolver(const Spider *dealer); | ||
29 | int get_possible_moves(int *a, int *numout) Q_DECL_OVERRIDE; | 29 | int get_possible_moves(int *a, int *numout) override; | ||
30 | bool isWon() Q_DECL_OVERRIDE; | 30 | bool isWon() override; | ||
31 | void make_move(MOVE *m) Q_DECL_OVERRIDE; | 31 | void make_move(MOVE *m) override; | ||
32 | void undo_move(MOVE *m) Q_DECL_OVERRIDE; | 32 | void undo_move(MOVE *m) override; | ||
33 | int getOuts() Q_DECL_OVERRIDE; | 33 | int getOuts() override; | ||
34 | unsigned int getClusterNumber() Q_DECL_OVERRIDE; | 34 | unsigned int getClusterNumber() override; | ||
35 | void translate_layout() Q_DECL_OVERRIDE; | 35 | void translate_layout() override; | ||
36 | void unpack_cluster( unsigned int k ) Q_DECL_OVERRIDE; | 36 | void unpack_cluster( unsigned int k ) override; | ||
37 | MoveHint translateMove(const MOVE &m) Q_DECL_OVERRIDE; | 37 | MoveHint translateMove(const MOVE &m) override; | ||
38 | 38 | | |||
39 | void print_layout() Q_DECL_OVERRIDE; | 39 | void print_layout() override; | ||
40 | 40 | | |||
41 | /* Names of the cards. The ordering is defined in pat.h. */ | 41 | /* Names of the cards. The ordering is defined in pat.h. */ | ||
42 | 42 | | |||
43 | int O[8]; | 43 | int O[8]; | ||
44 | const Spider *deal; | 44 | const Spider *deal; | ||
45 | }; | 45 | }; | ||
46 | 46 | | |||
47 | #endif // SPIDERSOLVER_H | 47 | #endif // SPIDERSOLVER_H |