1 /*
2  * Copyright 2020 Tom van Dijk
3  *
4  * Licensed under the Apache License, Version 2.0 (the "License");
5  * you may not use this file except in compliance with the License.
6  * You may obtain a copy of the License at
7  *
8  *     http://www.apache.org/licenses/LICENSE-2.0
9  *
10  * Unless required by applicable law or agreed to in writing, software
11  * distributed under the License is distributed on an "AS IS" BASIS,
12  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13  * See the License for the specific language governing permissions and
14  * limitations under the License.
15  */
16 
17 #ifndef FPJ_HPP
18 #define FPJ_HPP
19 
20 #include "solver.hpp"
21 #include "lace.h"
22 
23 namespace pg {
24 
25 class FPJSolver : public Solver
26 {
27 public:
28     FPJSolver(Oink *oink, Game *game);
29     virtual ~FPJSolver();
30 
31     unsigned long long iterations = 0;
32     bool greedy = false;
33 
34     void runSeqGreedy(void);
35     void runSeq(void);
36 
37     virtual void run();
38 };
39 
40 class FPJGSolver : public FPJSolver
41 {
42 public:
FPJGSolver(Oink * oink,Game * game)43     FPJGSolver(Oink *oink, Game *game) : FPJSolver(oink, game) { greedy = true; }
~FPJGSolver()44     virtual ~FPJGSolver() { }
45 };
46 
47 }
48 
49 #endif
50