Add setter for QQWing's Random attribute that lets you initialize it with a seed

This commit is contained in:
uykek 2020-05-19 22:36:24 +02:00
parent 25e92172f0
commit c36badaf18

View file

@ -199,6 +199,10 @@ public class QQWing {
return reset(); return reset();
} }
public void setRandom(int seed) {
random = new Random(seed);
}
/** /**
* Reset the board to its initial state with only the givens. This method * Reset the board to its initial state with only the givens. This method
* clears any solution, resets statistics, and clears any history messages. * clears any solution, resets statistics, and clears any history messages.