1 /*
2  * Copyright (C) 1998-2002 Tom Holroyd <tomh@kurage.nimh.nih.gov>
3  * Copyright (C) 2006-2009 Stephan Kulow <coolo@kde.org>
4  *
5  * This program is free software; you can redistribute it and/or
6  * modify it under the terms of the GNU General Public License as
7  * published by the Free Software Foundation; either version 2 of
8  * the License, or (at your option) any later version.
9  *
10  * This program is distributed in the hope that it will be useful,
11  * but WITHOUT ANY WARRANTY; without even the implied warranty of
12  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
13  * GNU General Public License for more details.
14  *
15  * You should have received a copy of the GNU General Public License
16  * along with this program.  If not, see <http://www.gnu.org/licenses/>.
17  */
18 
19 #ifndef CASTLESOLVER_H
20 #define CASTLESOLVER_H
21 
22 // own
23 #include "abstract_fc_solve_solver.h"
24 
25 constexpr auto Nwpiles = 8;
26 constexpr auto Ntpiles = 4;
27 class Castle;
28 
29 class CastleSolver : public FcSolveSolver
30 {
31 public:
32     explicit CastleSolver(const Castle *dealer);
33     int good_automove(int o, int r);
34     int get_possible_moves(int *a, int *numout) override;
35     void translate_layout() override;
36     MoveHint translateMove(const MOVE &m) override;
37     void setFcSolverGameParams() override;
38     int get_cmd_line_arg_count() override;
39     const char * * get_cmd_line_args() override;
40     card_t O[12]; /* output piles store only the rank or NONE */
41     const Castle *deal;
42 };
43 
44 #endif // CASTLESOLVER_H
45