Changeset View
Changeset View
Standalone View
Standalone View
patsolve/mod3solver.h
Show All 20 Lines | |||||
21 | class Mod3; | 21 | class Mod3; | ||
22 | #include "patsolve.h" | 22 | #include "patsolve.h" | ||
23 | 23 | | |||
24 | 24 | | |||
25 | class Mod3Solver : public Solver</* 24 targets, 8 playing fields, deck, aces =*/ 34> | 25 | class Mod3Solver : public Solver</* 24 targets, 8 playing fields, deck, aces =*/ 34> | ||
26 | { | 26 | { | ||
27 | public: | 27 | public: | ||
28 | explicit Mod3Solver(const Mod3 *dealer); | 28 | explicit Mod3Solver(const Mod3 *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 | const Mod3 *deal; | 39 | const Mod3 *deal; | ||
40 | int aces; | 40 | int aces; | ||
41 | int deck; | 41 | int deck; | ||
42 | }; | 42 | }; | ||
43 | 43 | | |||
44 | #endif // MOD3SOLVER_H | 44 | #endif // MOD3SOLVER_H |