mirror of
https://github.com/zenorogue/hyperrogue.git
synced 2024-12-18 15:00:26 +00:00
added kz(vector)
This commit is contained in:
parent
2333537f11
commit
3a8a3cf035
@ -371,6 +371,13 @@ EX transmatrix kz(transmatrix h) {
|
|||||||
return h;
|
return h;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#if HDR
|
||||||
|
template<class T> vector<T> kz(vector<T> v) {
|
||||||
|
for(auto& el: v) el = kz(el);
|
||||||
|
return v;
|
||||||
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
EX string pick123() { return cts('1' + rand() % 3); }
|
EX string pick123() { return cts('1' + rand() % 3); }
|
||||||
EX string pick12() { return cts('1' + rand() % 2); }
|
EX string pick12() { return cts('1' + rand() % 2); }
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user