From 9acae64d236dd1aeae4d2544f1896b73069c9e5b Mon Sep 17 00:00:00 2001 From: Zeno Rogue Date: Sat, 5 Apr 2025 23:23:28 +0200 Subject: [PATCH] function field_quotient_str --- geom-exp.cpp | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/geom-exp.cpp b/geom-exp.cpp index f2df632d..39d71086 100644 --- a/geom-exp.cpp +++ b/geom-exp.cpp @@ -1218,11 +1218,22 @@ EX void field_quotient_3d(int p, unsigned hash) { set_geometry(gFieldQuotient); for(;; 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); } +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) { using namespace fieldpattern; current_extra = group;