Changeset View
Changeset View
Standalone View
Standalone View
patsolve/golfsolver.h
Show All 20 Lines | |||||
21 | class Golf; | 21 | class Golf; | ||
22 | #include "patsolve.h" | 22 | #include "patsolve.h" | ||
23 | 23 | | |||
24 | 24 | | |||
25 | class GolfSolver : public Solver | 25 | class GolfSolver : public Solver | ||
26 | { | 26 | { | ||
27 | public: | 27 | public: | ||
28 | explicit GolfSolver(const Golf *dealer); | 28 | explicit GolfSolver(const Golf *dealer); | ||
29 | int good_automove(int o, int r); | 29 | | ||
30 | int get_possible_moves(int *a, int *numout) Q_DECL_OVERRIDE; | 30 | int get_possible_moves(int *a, int *numout) Q_DECL_OVERRIDE; | ||
31 | bool isWon() Q_DECL_OVERRIDE; | 31 | bool isWon() Q_DECL_OVERRIDE; | ||
32 | void make_move(MOVE *m) Q_DECL_OVERRIDE; | 32 | void make_move(MOVE *m) Q_DECL_OVERRIDE; | ||
33 | void undo_move(MOVE *m) Q_DECL_OVERRIDE; | 33 | void undo_move(MOVE *m) Q_DECL_OVERRIDE; | ||
34 | int getOuts() Q_DECL_OVERRIDE; | 34 | int getOuts() Q_DECL_OVERRIDE; | ||
35 | void translate_layout() Q_DECL_OVERRIDE; | 35 | void translate_layout() Q_DECL_OVERRIDE; | ||
36 | MoveHint translateMove(const MOVE &m) Q_DECL_OVERRIDE; | 36 | MoveHint translateMove(const MOVE &m) Q_DECL_OVERRIDE; | ||
37 | 37 | | |||
38 | void print_layout() Q_DECL_OVERRIDE; | 38 | void print_layout() Q_DECL_OVERRIDE; | ||
39 | 39 | | |||
40 | const Golf *deal; | 40 | const Golf *deal; | ||
41 | }; | 41 | }; | ||
42 | 42 | | |||
43 | #endif // GOLFSOLVER_H | 43 | #endif // GOLFSOLVER_H |