From 247b88cf5852b8a22c1f59f6a750b3ec2ba7cb53 Mon Sep 17 00:00:00 2001 From: Tomas Maly Date: Fri, 1 Dec 2023 15:58:35 +0100 Subject: [PATCH] allow as few as 2 starting positions --- sources/startingPositions.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sources/startingPositions.cpp b/sources/startingPositions.cpp index eb8fdaf..1910488 100644 --- a/sources/startingPositions.cpp +++ b/sources/startingPositions.cpp @@ -110,7 +110,7 @@ namespace unnatural for (uint32 attempt = 0; attempt < Limit; attempt++) { std::vector proposal = proposeSolution(allCandidates); - if (proposal.size() < 3) + if (proposal.size() < 2) continue; const Real score = scorePositionsEquidistance(proposal); if (score > bestScore)