1
0
mirror of https://github.com/zenorogue/hyperrogue.git synced 2025-10-12 21:27:41 +00:00

optimized the honeycomb rules by using the 'quotient' fieldpatterns

This commit is contained in:
Zeno Rogue
2021-05-20 23:06:02 +02:00
parent 5a83434e7a
commit bb016585ab
6 changed files with 9 additions and 0 deletions

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());
}