Changeset View
Changeset View
Standalone View
Standalone View
patsolve/idiotsolver.h
Show All 20 Lines | |||||
21 | class Idiot; | 21 | class Idiot; | ||
22 | #include "patsolve.h" | 22 | #include "patsolve.h" | ||
23 | 23 | | |||
24 | 24 | | |||
25 | class IdiotSolver : public Solver<6> | 25 | class IdiotSolver : public Solver<6> | ||
26 | { | 26 | { | ||
27 | public: | 27 | public: | ||
28 | explicit IdiotSolver(const Idiot *dealer); | 28 | explicit IdiotSolver(const Idiot *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 | void translate_layout() Q_DECL_OVERRIDE; | 34 | void translate_layout() override; | ||
35 | MoveHint translateMove(const MOVE &m) Q_DECL_OVERRIDE; | 35 | MoveHint translateMove(const MOVE &m) override; | ||
36 | 36 | | |||
37 | void print_layout() Q_DECL_OVERRIDE; | 37 | void print_layout() override; | ||
38 | 38 | | |||
39 | bool canMoveAway( int pile ) const; | 39 | bool canMoveAway( int pile ) const; | ||
40 | 40 | | |||
41 | const Idiot *deal; | 41 | const Idiot *deal; | ||
42 | }; | 42 | }; | ||
43 | 43 | | |||
44 | #endif // IDIOTSOLVER_H | 44 | #endif // IDIOTSOLVER_H |