mirror of
https://github.com/zenorogue/hyperrogue.git
synced 2024-12-18 15:00:26 +00:00
rulegen::tests:: display 3D fields
This commit is contained in:
parent
7411f21b59
commit
ffe8e9cef3
@ -1747,6 +1747,24 @@ int testargs() {
|
|||||||
println(hlog, "wrong dseek index");
|
println(hlog, "wrong dseek index");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
else if(argis("-fields")) {
|
||||||
|
fieldpattern::fpattern fp(0);
|
||||||
|
start_game();
|
||||||
|
fp.force_hash = 1;
|
||||||
|
fieldpattern::use_quotient_fp = true;
|
||||||
|
set<unsigned> seen_hashes;
|
||||||
|
addHook(fieldpattern::hooks_solve3, 100, [&] {
|
||||||
|
if(seen_hashes.count(fp.hashv)) return;
|
||||||
|
seen_hashes.insert(fp.hashv);
|
||||||
|
println(hlog, "FOUND p=", fp.Prime, " f=", fp.Field, " hash = ", fp.hashv);
|
||||||
|
});
|
||||||
|
for(int p=2; p<100; p++) {
|
||||||
|
println(hlog, "listing hashes for p=", p);
|
||||||
|
fp.Prime = p;
|
||||||
|
fp.solve();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
else return 1;
|
else return 1;
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user