Solve triangle solitaire puzzle: Difference between revisions

→‎{{header|Racket}}: Query correctness of output
(→‎{{header|Racket}}: Query correctness of output)
Line 1,416:
 
=={{header|Racket}}==
{{incorrect|Racket|Should the output start 6 jumps 3, then 15 jumps 10 ... rather than 1 jumps 3, then 6 jumps 10 ... ?}}
 
* This includes the code to generate the list of available hops (other implementations seem to have the table built in)
* It produces a full has containing all the possible results from all possible start positions (including ones without valid hops, and unusual starts). It takes no time... and once this is pre-calculated then some of the questions you might want answered about this puzzle can be more easily answered!
2,172

edits