More cleanups of the tests and fixes to the room and door positioning.
This commit is contained in:
parent
8e2a691337
commit
02d23bb77d
11 changed files with 75 additions and 78 deletions
|
|
@ -27,5 +27,15 @@ namespace Random {
|
|||
return rand(GENERATOR);
|
||||
}
|
||||
|
||||
auto abs(auto i, auto j) {
|
||||
if(i < j) {
|
||||
return Random::uniform(i, j);
|
||||
} else if(j < i) {
|
||||
return Random::uniform(j, i);
|
||||
} else {
|
||||
return i;
|
||||
}
|
||||
}
|
||||
|
||||
std::chrono::milliseconds milliseconds(int from, int to);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue