Changeset View
Changeset View
Standalone View
Standalone View
patsolve/gypsysolver.h
Show All 21 Lines | |||||
22 | #include "patsolve.h" | 22 | #include "patsolve.h" | ||
23 | 23 | | |||
24 | 24 | | |||
25 | class GypsySolver : public Solver<8 + 1 + 8> | 25 | class GypsySolver : public Solver<8 + 1 + 8> | ||
26 | { | 26 | { | ||
27 | public: | 27 | public: | ||
28 | explicit GypsySolver(const Gypsy *dealer); | 28 | explicit GypsySolver(const Gypsy *dealer); | ||
29 | int good_automove(int o, int r); | 29 | int good_automove(int o, int r); | ||
30 | int get_possible_moves(int *a, int *numout) Q_DECL_OVERRIDE; | 30 | int get_possible_moves(int *a, int *numout) override; | ||
31 | bool isWon() Q_DECL_OVERRIDE; | 31 | bool isWon() override; | ||
32 | void make_move(MOVE *m) Q_DECL_OVERRIDE; | 32 | void make_move(MOVE *m) override; | ||
33 | void undo_move(MOVE *m) Q_DECL_OVERRIDE; | 33 | void undo_move(MOVE *m) override; | ||
34 | int getOuts() Q_DECL_OVERRIDE; | 34 | int getOuts() override; | ||
35 | void translate_layout() Q_DECL_OVERRIDE; | 35 | void translate_layout() override; | ||
36 | MoveHint translateMove(const MOVE &m) Q_DECL_OVERRIDE; | 36 | MoveHint translateMove(const MOVE &m) override; | ||
37 | 37 | | |||
38 | void print_layout() Q_DECL_OVERRIDE; | 38 | void print_layout() override; | ||
39 | 39 | | |||
40 | /* Names of the cards. The ordering is defined in pat.h. */ | 40 | /* Names of the cards. The ordering is defined in pat.h. */ | ||
41 | 41 | | |||
42 | const Gypsy *deal; | 42 | const Gypsy *deal; | ||
43 | 43 | | |||
44 | int deck, outs; | 44 | int deck, outs; | ||
45 | int params[6]; | 45 | int params[6]; | ||
46 | }; | 46 | }; | ||
47 | 47 | | |||
48 | #endif // GYPSYSOLVER_H | 48 | #endif // GYPSYSOLVER_H |