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