Changeset View
Changeset View
Standalone View
Standalone View
patsolve/patsolve.h
Show First 20 Lines • Show All 55 Lines • ▼ Show 20 Line(s) | |||||
56 | public: | 56 | public: | ||
57 | 57 | | |||
58 | Solver(); | 58 | Solver(); | ||
59 | virtual ~Solver(); | 59 | virtual ~Solver(); | ||
60 | ExitStatus patsolve( int max_positions = -1) override; | 60 | ExitStatus patsolve( int max_positions = -1) override; | ||
61 | bool recursive(POSITION *pos = nullptr); | 61 | bool recursive(POSITION *pos = nullptr); | ||
62 | void translate_layout() override = 0; | 62 | void translate_layout() override = 0; | ||
63 | MoveHint translateMove(const MOVE &m ) override = 0; | 63 | MoveHint translateMove(const MOVE &m ) override = 0; | ||
64 | void stopExecution() final Q_DECL_OVERRIDE; | 64 | void stopExecution() final override; | ||
65 | QList<MOVE> firstMoves() const final Q_DECL_OVERRIDE; | 65 | QList<MOVE> firstMoves() const final override; | ||
66 | QList<MOVE> winMoves() const final Q_DECL_OVERRIDE; | 66 | QList<MOVE> winMoves() const final override; | ||
67 | 67 | | |||
68 | protected: | 68 | protected: | ||
69 | MOVE *get_moves(int *nmoves); | 69 | MOVE *get_moves(int *nmoves); | ||
70 | bool solve(POSITION *parent); | 70 | bool solve(POSITION *parent); | ||
71 | void doit(); | 71 | void doit(); | ||
72 | void win(POSITION *pos); | 72 | void win(POSITION *pos); | ||
73 | virtual int get_possible_moves(int *a, int *numout) = 0; | 73 | virtual int get_possible_moves(int *a, int *numout) = 0; | ||
74 | int translateSuit( int s ); | 74 | int translateSuit( int s ); | ||
▲ Show 20 Lines • Show All 86 Lines • Show Last 20 Lines |