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 36 37 38
|
//-----------------------------------------------------------------------------
/** @file libpentobi_base/BoardUtil.h
@author Markus Enzenberger
@copyright GNU General Public License version 3 or later */
//-----------------------------------------------------------------------------
#ifndef LIBPENTOBI_BASE_BOARD_UTIL_H
#define LIBPENTOBI_BASE_BOARD_UTIL_H
#include "Board.h"
#include "libboardgame_base/Writer.h"
namespace libpentobi_base {
using libboardgame_base::Writer;
//-----------------------------------------------------------------------------
#ifdef LIBBOARDGAME_DEBUG
string dump(const Board& bd);
#endif
/** Return the current position as setup.
Merges all placements from Board::get_setup() and played moved into a
single setup and sets the setup color to play to the current color to
play. */
void get_current_position_as_setup(const Board& bd, Setup& setup);
void write_setup(Writer& writer, Variant variant, const Setup& setup);
Move get_transformed(const Board& bd, Move mv,
const PointTransform<Point>& transform);
//-----------------------------------------------------------------------------
} // namespace libpentobi_base
#endif // LIBPENTOBI_BASE_BOARD_UTIL_H
|