Add setter for QQWing's Random attribute that lets you initialize it with a seed
This commit is contained in:
parent
25e92172f0
commit
c36badaf18
1 changed files with 4 additions and 0 deletions
|
@ -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.
|
||||||
|
|
Loading…
Reference in a new issue