aboutsummaryrefslogtreecommitdiff
path: root/src/main/input-output/output/state_printer.h
blob: 575b973ba0cbb48269018cff03ad292e2f20f499 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
//
// Created by thecharlesblake on 1/3/18.
//

#ifndef SOLVITAIRE_STATE_PRINT_H
#define SOLVITAIRE_STATE_PRINT_H

#include <ostream>

#include "../../game/search-state/game_state.h"

class state_printer {
public:
    static std::ostream& print(std::ostream&, const game_state&);
    static void print_move(std::ostream&, move);

private:
    static void print_header(std::ostream&, const char*);
    static void print_piles(std::ostream&,
                            const std::vector<pile::ref>&,
                            const game_state&);
    static void print_sequences(std::ostream&,
                            const std::vector<pile::ref>&,
                            const game_state&);
    static void print_top_of_piles(std::ostream&,
                                   const std::vector<pile::ref>&,
                                   const game_state&);
    static void print_top_of_pile(std::ostream&, pile::ref,
                                  const game_state&);
    static void print_accordion(std::ostream&, const std::list<pile::ref>&,
                                  const game_state&);
    static void print_card(std::ostream&, card);
};

#endif //SOLVITAIRE_STATE_PRINT_H