Skip to content

Commit

Permalink
Pick room shapes randomly when greedily adding nodes
Browse files Browse the repository at this point in the history
  • Loading branch information
OndrejNepozitek committed Mar 8, 2019
1 parent a9c8f28 commit 820ebeb
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,7 @@ public override void AddNodeGreedily(TLayout layout, TNode node)
var bestPosition = new IntVector2();

var shapes = ConfigurationSpaces.GetShapesForNode(node).ToList();
// shapes.Shuffle(Random);
shapes.Shuffle(Random);

// Try all shapes
foreach (var shape in shapes)
Expand Down

0 comments on commit 820ebeb

Please sign in to comment.