diff options
| author | Charlie Blake | 2018-06-13 15:08:11 +0100 |
|---|---|---|
| committer | Charlie Blake | 2018-06-13 15:08:11 +0100 |
| commit | fb3e96a333cc9b27529f5d2c7866a2f7c4d43ec2 (patch) | |
| tree | f5e009070c987a6af4fe595dc2ce8ad24d34f89a /src/main/solver/solver.h | |
| parent | Add lru cache with elems limit (diff) | |
| download | metasol-fb3e96a333cc9b27529f5d2c7866a2f7c4d43ec2.tar.gz metasol-fb3e96a333cc9b27529f5d2c7866a2f7c4d43ec2.zip | |
Add cache capacity command line option
Diffstat (limited to 'src/main/solver/solver.h')
| -rw-r--r-- | src/main/solver/solver.h | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/main/solver/solver.h b/src/main/solver/solver.h index 73d5e41..bc3af0a 100644 --- a/src/main/solver/solver.h +++ b/src/main/solver/solver.h @@ -25,7 +25,7 @@ public: boost::optional<lru_cache::item_list::iterator> parent_state_iter; // Optional, as dominance moves aren't cached }; - explicit solver(const game_state&); + explicit solver(const game_state&, uint64_t); ~solver(); sol_state run(boost::optional<std::atomic<bool> &> = boost::none); @@ -39,7 +39,6 @@ private: bool revert_to_last_node_with_children(boost::optional<lru_cache::item_list::iterator> = boost::none); void add_children(std::vector<move>&, boost::optional<lru_cache::item_list::iterator> = boost::none); void add_child(move, boost::optional<lru_cache::item_list::iterator> = boost::none); - std::vector<move> get_next_moves(); const game_state init_state; game_state state; |
