clean up imports

This commit is contained in:
Maximilian Keßler 2023-11-15 23:07:39 +01:00
parent 3244213daa
commit 6e0e88b97a
Signed by: max
GPG Key ID: BCC5A619923C0BA5
13 changed files with 23 additions and 20 deletions

View File

@ -3,7 +3,7 @@
#include <variant> #include <variant>
#include <boost/optional.hpp> #include <boost/optional.hpp>
#include "game_state.h" #include "hanabi_types.hpp"
namespace Hanabi { namespace Hanabi {

View File

@ -3,13 +3,11 @@
#include <iostream> #include <iostream>
#include <variant> #include <variant>
#include <vector> #include <optional>
#include <memory>
#include <boost/json.hpp> #include <boost/json.hpp>
#include "game_state.h" #include "game_interface.h"
#include "myassert.h"
namespace Download { namespace Download {

View File

@ -6,6 +6,7 @@
#include <vector> #include <vector>
#include <unordered_map> #include <unordered_map>
#include <memory> #include <memory>
#include "hanabi_types.hpp" #include "hanabi_types.hpp"

View File

@ -1,7 +1,7 @@
#ifndef DYNAMIC_PROGRAM_NULL_BUFFER_H #ifndef DYNAMIC_PROGRAM_NULL_BUFFER_H
#define DYNAMIC_PROGRAM_NULL_BUFFER_H #define DYNAMIC_PROGRAM_NULL_BUFFER_H
#include <ostream> #include <iosfwd>
namespace NullBuffer { namespace NullBuffer {

View File

@ -3,7 +3,7 @@
#include <boost/json.hpp> #include <boost/json.hpp>
#include "game_state.h" #include "game_interface.h"
namespace Hanabi { namespace Hanabi {
// These are overloads that the boost/json library uses for parsing. // These are overloads that the boost/json library uses for parsing.

View File

@ -2,7 +2,7 @@
#define DYNAMIC_PROGRAM_CLI_INTERFACE_H #define DYNAMIC_PROGRAM_CLI_INTERFACE_H
#include <memory> #include <memory>
#include "game_state.h" #include "game_interface.h"
namespace Hanabi { namespace Hanabi {
void cli(const std::shared_ptr<HanabiStateIF>& game); void cli(const std::shared_ptr<HanabiStateIF>& game);

View File

@ -1,6 +1,5 @@
#include <iostream> #include <iostream>
#include "game_state.h"
#include "download.h" #include "download.h"
void check_games(unsigned num_players, unsigned max_draw_pile_size, unsigned first_game = 0, unsigned last_game = 9999) { void check_games(unsigned num_players, unsigned max_draw_pile_size, unsigned first_game = 0, unsigned last_game = 9999) {

View File

@ -1,8 +1,10 @@
#include "command_line_interface.h" #include <boost/program_options.hpp>
#include "download.h" #include "download.h"
#include "null_buffer.h" #include "null_buffer.h"
#include "state_explorer.h" #include "state_explorer.h"
#include "boost/program_options.hpp"
#include "command_line_interface.h"
namespace bpo = boost::program_options; namespace bpo = boost::program_options;

View File

@ -2,6 +2,7 @@
#include <cpr/cpr.h> #include <cpr/cpr.h>
#include "parse_game.h" #include "parse_game.h"
#include "game_state.h"
#include "download.h" #include "download.h"

View File

@ -1,6 +1,7 @@
#include "game_interface.h"
#include "myassert.h" #include "myassert.h"
#include "game_interface.h"
namespace Hanabi { namespace Hanabi {
std::ostream &operator<<(std::ostream &os, HanabiStateIF const &hanabi_state) std::ostream &operator<<(std::ostream &os, HanabiStateIF const &hanabi_state)

View File

@ -1,4 +1,5 @@
#include <optional> #include <optional>
#include "command_line_interface.h" #include "command_line_interface.h"

View File

@ -1,5 +1,7 @@
#include "parse_game.h" #include "parse_game.h"
#include "myassert.h"
namespace Parsing { namespace Parsing {
// This helper function deduces the type and assigns the value with the matching key // This helper function deduces the type and assigns the value with the matching key
template<class T> template<class T>

View File

@ -1,17 +1,15 @@
#include <cstdio>
#include <numeric>
#include <ios>
#include <cmath> #include <cmath>
#include <csignal> #include <csignal>
#include <iomanip> #include <iomanip>
#include <readline/readline.h>
#include <ranges>
#include <readline/history.h>
#include <iostream> #include <iostream>
#include <memory> #include <memory>
#include <cmath> #include <numeric>
#include <ranges>
#include <readline/readline.h>
#include <readline/history.h>
#include "game_state.h" #include "game_state.h"
#include <myassert.h>
namespace Hanabi { namespace Hanabi {