Solve triangle solitaire puzzle: Difference between revisions

no edit summary
No edit summary
No edit summary
Line 1:
{{task}} IQ Puzzle a triangle of 15 golf tee's typically seen at Cracker Barrel where one tee is missing
where one tee is missing and the remaining tees jump each other until one tee is left. The few tees left the higher the IQ
The fewer tees left the higher the IQ score. peg #1 is the top center and bottom row pegs 11 thru 15
pegs 11 thru 15
reference picture http://www.joenord.com/puzzles/peggame/
Task Print a solution to solve the puzzle leaving one peg
Not implemented variations Start with empty peg in X and solve with one peg in position Y
peg in position Y Python version 2.7.2
 
=={{header|Python}}==
Line 11 ⟶ 12:
<lang Python >
# IQ Puzzle a triangle of 15 golf tee's typically seen at Cracker Barrel where one tee is missing
# and the remaining tees jump each other until ne tee is left. The fewfewer tees left the higher the IQ
# score. peg #1 is the top center and bottom row pegs 11 thru 15
# reference picture http://www.joenord.com/puzzles/peggame/
Anonymous user