blob: 7e01aea2bc5695e273ac5262e5241b4759183c40 (
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
|
//
// 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_card(std::ostream&, card);
};
#endif //SOLVITAIRE_STATE_PRINT_H
|