File indexing completed on 2024-11-24 03:45:00

0001 /*
0002  * Copyright (C) 2006-2009 Stephan Kulow <coolo@kde.org>
0003  *
0004  * This program is free software; you can redistribute it and/or
0005  * modify it under the terms of the GNU General Public License as
0006  * published by the Free Software Foundation; either version 2 of
0007  * the License, or (at your option) any later version.
0008  *
0009  * This program is distributed in the hope that it will be useful,
0010  * but WITHOUT ANY WARRANTY; without even the implied warranty of
0011  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
0012  * GNU General Public License for more details.
0013  *
0014  * You should have received a copy of the GNU General Public License
0015  * along with this program.  If not, see <http://www.gnu.org/licenses/>.
0016  */
0017 
0018 #ifndef SIMONSOLVER_H
0019 #define SIMONSOLVER_H
0020 
0021 // own
0022 #include "abstract_fc_solve_solver.h"
0023 #include "simon.h"
0024 
0025 class Simon;
0026 
0027 class SimonSolver : public FcSolveSolver
0028 {
0029 public:
0030     explicit SimonSolver(const Simon *dealer);
0031     int get_possible_moves(int *a, int *numout) override;
0032     void translate_layout() override;
0033     MoveHint translateMove(const MOVE &m) override;
0034     void setFcSolverGameParams() override;
0035 
0036     int get_cmd_line_arg_count() override;
0037     const char **get_cmd_line_args() override;
0038     const Simon *deal;
0039 };
0040 
0041 #endif // SIMONSOLVER_H