Skip to content

Commit

Permalink
Add a note that -c and --alloptimal will only give solutions reduced by
Browse files Browse the repository at this point in the history
the same symmetry that is found from the rotations and move sets.
  • Loading branch information
rokicki committed Jan 28, 2025
1 parent ff84160 commit cfa5052
Showing 1 changed file with 11 additions and 3 deletions.
14 changes: 11 additions & 3 deletions src/cpp/twsearch.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,11 @@ static boolopt boolopts[] = {
{"-q", "Use only minimal (quarter) turns.", &quarter},
{"-H", "Use 128-bit hash instead of full state for God's number searches.",
&usehashenc},
{"--alloptimal", "Find all optimal solutions.", &alloptimal},
{"--alloptimal",
"Find all optimal solutions. If puzzle has rotations\n"
"and is reduced by symmetry, the set of solutions will also be\n"
"reduced by that symmetry.",
&alloptimal},
};
static intopt intopts[] = {
{"--newcanon",
Expand All @@ -148,8 +152,12 @@ static intopt intopts[] = {
{"-R", "num Seed for random number generator.", &seed, -2000000000,
2000000000},
};
static llopt solcountopt("-c", "num Number of solutions to generate.",
&solutionsneeded);
static llopt solcountopt(
"-c",
"num Number of solutions to generate. If puzzle has rotations\n"
"and is reduced by symmetry, the set of solutions will also be\n"
"reduced by that symmetry.",
&solutionsneeded);
/*
* Can be called multiple times at the start.
*/
Expand Down

0 comments on commit cfa5052

Please sign in to comment.