Make the ID really an ID and thus labyrinth generation reproducible.
This commit is contained in:
parent
ccba8a9a11
commit
1e27267763
1 changed files with 3 additions and 1 deletions
|
@ -6,9 +6,11 @@ import lombok.NonNull;
|
|||
import java.util.EnumSet;
|
||||
import java.util.HashSet;
|
||||
import java.util.Set;
|
||||
import java.util.SortedSet;
|
||||
import java.util.TreeSet;
|
||||
|
||||
public class Walls {
|
||||
private final Set<Direction> directions = new HashSet<>();
|
||||
private final SortedSet<Direction> directions = new TreeSet<>();
|
||||
private final Set<Direction> hardened = new HashSet<>();
|
||||
|
||||
public boolean set(@NonNull final Direction direction) {
|
||||
|
|
Loading…
Reference in a new issue