optimized the honeycomb rules by using the 'quotient' fieldpatterns

This commit is contained in:
Zeno Rogue committed 2021-05-23 16:00:49 +02:00
1 parent 5a83434e7a
commit bb016585ab
6 files changed
+9

No files matched your search

+8
View File
@@ -272,6 +272,8 @@ void add_candidate(cell *c) {
void test_canonical(string fname) {
stop_game();
reg3::reg3_rule_available = false;
fieldpattern::use_rule_fp = true;
fieldpattern::use_quotient_fp = true;
start_game();
int qc = reg3::quotient_count();
@@ -531,6 +533,12 @@ auto fqhook =
else if(argis("-no-rule")) {
reg3::reg3_rule_available = false;
}
else if(argis("-urf")) {
cheat(); fieldpattern::use_rule_fp = true;
}
else if(argis("-uqf")) {
cheat(); fieldpattern::use_quotient_fp = true;
}
else if(argis("-gen-rule")) {
shift(); test_canonical(args());
}
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
+1
View File
@@ -949,6 +949,7 @@ EX namespace reg3 {
buf.resize(qty);
shstream ins(decompress_string(buf));
dynamicval<bool> q(fieldpattern::use_quotient_fp, true);
hread_fpattern(ins, fp);
hread(ins, root);