mirror of
				https://github.com/zenorogue/hyperrogue.git
				synced 2025-10-31 05:52:59 +00:00 
			
		
		
		
	the -to-fq option allows specifying prime
This commit is contained in:
		
							
								
								
									
										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")) { | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user
	 Zeno Rogue
					Zeno Rogue