1
0
mirror of https://github.com/zenorogue/hyperrogue.git synced 2025-05-10 19:24:06 +00:00

function field_quotient_str

This commit is contained in:
Zeno Rogue 2025-04-05 23:23:28 +02:00
parent 41b5ba1c44
commit 9acae64d23

View File

@ -1218,11 +1218,22 @@ EX void field_quotient_3d(int p, unsigned hash) {
set_geometry(gFieldQuotient); set_geometry(gFieldQuotient);
for(;; p++) { for(;; p++) {
println(hlog, "trying p = ", p); println(hlog, "trying p = ", p);
currfp.Prime = p; currfp.force_hash = hash; if(!currfp.solve()) break; currfp.Prime = p; currfp.force_hash = hash;
if(!currfp.solve()) break;
} }
println(hlog, "set prime = ", currfp.Prime); println(hlog, "set prime = ", currfp.Prime);
} }
EX void field_quotient_3d(string code) {
check_cgi();
cgi.require_basics();
stop_game_and_switch_mode(rg::nothing);
fieldpattern::field_from_current();
set_geometry(gFieldQuotient);
shstream ins(code);
hread_fpattern(ins, currfp);
}
EX void field_quotient_2d(int group, int id, int triplet) { EX void field_quotient_2d(int group, int id, int triplet) {
using namespace fieldpattern; using namespace fieldpattern;
current_extra = group; current_extra = group;