The RNG::shuffle method was broken, as I used c.size() - 1. Since c.size is of an unsigned type, this caused an underflow that was detected when an exception was thrown when braiding mazes with no dead ends.
This has now been fixed, and test cases for braiding have been added.
The
RNG::shuffle
method was broken, as I usedc.size() - 1
. Sincec.size
is of an unsigned type, this caused an underflow that was detected when an exception was thrown when braiding mazes with no dead ends.This has now been fixed, and test cases for braiding have been added.