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 <boost/optional.hpp>
#include "game_state.h"
#include "hanabi_types.hpp"
namespace Hanabi {

View file

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

View file

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

View file

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

View file

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

View file

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

View file

@ -1,6 +1,5 @@
#include <iostream>
#include "game_state.h"
#include "download.h"
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 "null_buffer.h"
#include "state_explorer.h"
#include "boost/program_options.hpp"
#include "command_line_interface.h"
namespace bpo = boost::program_options;

View file

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

View file

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

View file

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

View file

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

View file

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