1
0
mirror of https://github.com/zenorogue/hyperrogue.git synced 2024-12-28 19:10:35 +00:00

print walkers

This commit is contained in:
Zeno Rogue 2018-12-13 14:54:15 +01:00
parent 8d1e341555
commit 473cd89d76

View File

@ -4308,6 +4308,8 @@ inline void print(hstream& hs, const string& s) { hs.write_chars(s.c_str(), isiz
inline void print(hstream& hs, int i) { print(hs, its(i)); }
inline void print(hstream& hs, ld x) { print(hs, fts(x)); }
template<class T> void print(hstream& hs, const walker<T>& w) { print(hs, "[", w.at, "/", w.spin, "/", w.mirrored, "]"); }
struct comma_printer {
bool first;
hstream& hs;