mirror of
https://github.com/zenorogue/hyperrogue.git
synced 2025-07-07 11:52:51 +00:00
the -to-fq option allows specifying prime
This commit is contained in:
parent
436fe7f367
commit
5c85f22ef3
10
geom-exp.cpp
10
geom-exp.cpp
@ -1036,11 +1036,17 @@ int read_geom_args() {
|
|||||||
}
|
}
|
||||||
else if(argis("-to-fq")) {
|
else if(argis("-to-fq")) {
|
||||||
cgi.require_basics();
|
cgi.require_basics();
|
||||||
shift(); unsigned hash = arghex();
|
int p = 2;
|
||||||
|
shift();
|
||||||
|
if(args() == "p") {
|
||||||
|
shift(); p = argi();
|
||||||
|
shift();
|
||||||
|
}
|
||||||
|
unsigned hash = arghex();
|
||||||
stop_game_and_switch_mode(rg::nothing);
|
stop_game_and_switch_mode(rg::nothing);
|
||||||
fieldpattern::field_from_current();
|
fieldpattern::field_from_current();
|
||||||
set_geometry(gFieldQuotient);
|
set_geometry(gFieldQuotient);
|
||||||
for(int p=2;; p++) { currfp.Prime = p; currfp.force_hash = hash; if(!currfp.solve()) break; }
|
for(;; p++) { currfp.Prime = p; currfp.force_hash = hash; if(!currfp.solve()) break; }
|
||||||
println(hlog, "set prime = ", currfp.Prime);
|
println(hlog, "set prime = ", currfp.Prime);
|
||||||
}
|
}
|
||||||
else if(argis("-cs")) {
|
else if(argis("-cs")) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user