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:
parent
41b5ba1c44
commit
9acae64d23
13
geom-exp.cpp
13
geom-exp.cpp
@ -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;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user