| 
									
										
										
										
											2025-03-20 11:06:27 +13:00
										 |  |  | --- | 
					
						
							|  |  |  | source: kcl-lib/src/simulation_tests.rs | 
					
						
							|  |  |  | description: Result of unparsing riddle_small.kcl | 
					
						
							|  |  |  | --- | 
					
						
							|  |  |  | ANSWER = 41803 | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2025-05-01 11:36:51 -05:00
										 |  |  | fn t(@s) { | 
					
						
							| 
									
										
										
										
											2025-03-20 11:06:27 +13:00
										 |  |  |   return (ANSWER * s + 12345) % 214748 | 
					
						
							|  |  |  | } | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | xs = 205804 | 
					
						
							|  |  |  | ys = 71816 | 
					
						
							|  |  |  | ox = 35 - (t(xs) % 70) | 
					
						
							|  |  |  | oy = 35 - (t(ys) % 70) | 
					
						
							| 
									
										
										
										
											2025-03-21 22:39:12 +13:00
										 |  |  | r = startSketchOn(XZ) | 
					
						
							| 
									
										
										
										
											2025-04-25 16:01:35 -05:00
										 |  |  |   |> startProfile(at = [ox, oy]) | 
					
						
							| 
									
										
										
										
											2025-03-20 11:06:27 +13:00
										 |  |  |   |> line(end = [1, 0]) | 
					
						
							|  |  |  |   |> line(end = [0, -1]) | 
					
						
							|  |  |  |   |> line(end = [-1, 0]) | 
					
						
							|  |  |  |   |> close(%) | 
					
						
							|  |  |  |   |> extrude(length = 1) |