Changeset View
Changeset View
Standalone View
Standalone View
patsolve/golfsolver.h
Show All 28 Lines | |||||
29 | { | 29 | { | ||
30 | public: | 30 | public: | ||
31 | explicit GolfSolver(const Golf *dealer); | 31 | explicit GolfSolver(const Golf *dealer); | ||
32 | int default_max_positions; | 32 | int default_max_positions; | ||
33 | 33 | | |||
34 | #ifdef WITH_BH_SOLVER | 34 | #ifdef WITH_BH_SOLVER | ||
35 | black_hole_solver_instance_t *solver_instance; | 35 | black_hole_solver_instance_t *solver_instance; | ||
36 | int solver_ret; | 36 | int solver_ret; | ||
37 | SolverInterface::ExitStatus patsolve( int _max_positions ) Q_DECL_OVERRIDE; | 37 | SolverInterface::ExitStatus patsolve( int _max_positions ) override; | ||
38 | // More than enough space for two decks. | 38 | // More than enough space for two decks. | ||
39 | char board_as_string[4 * 13 * 2 * 4 * 3]; | 39 | char board_as_string[4 * 13 * 2 * 4 * 3]; | ||
40 | void free_solver_instance(); | 40 | void free_solver_instance(); | ||
41 | #endif | 41 | #endif | ||
42 | int get_possible_moves(int *a, int *numout) Q_DECL_OVERRIDE; | 42 | int get_possible_moves(int *a, int *numout) override; | ||
43 | bool isWon() Q_DECL_OVERRIDE; | 43 | bool isWon() override; | ||
44 | void make_move(MOVE *m) Q_DECL_OVERRIDE; | 44 | void make_move(MOVE *m) override; | ||
45 | void undo_move(MOVE *m) Q_DECL_OVERRIDE; | 45 | void undo_move(MOVE *m) override; | ||
46 | int getOuts() Q_DECL_OVERRIDE; | 46 | int getOuts() override; | ||
47 | void translate_layout() Q_DECL_OVERRIDE; | 47 | void translate_layout() override; | ||
48 | MoveHint translateMove(const MOVE &m) Q_DECL_OVERRIDE; | 48 | MoveHint translateMove(const MOVE &m) override; | ||
49 | 49 | | |||
50 | void print_layout() Q_DECL_OVERRIDE; | 50 | void print_layout() override; | ||
51 | 51 | | |||
52 | const Golf *deal; | 52 | const Golf *deal; | ||
53 | }; | 53 | }; | ||
54 | 54 | | |||
55 | #endif // GOLFSOLVER_H | 55 | #endif // GOLFSOLVER_H |