mirror of
https://github.com/zenorogue/hyperrogue.git
synced 2025-05-09 18:54:07 +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);
|
||||
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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user