Solve triangle solitaire puzzle: Difference between revisions

Content added Content deleted
(Added Elixir)
m (added whitespace before the TOC (table of contents), added a ;Task: (bold) header, added other whitespace to the task's preamble, added some clarification to the puzzle's rules.)
Line 1: Line 1:
{{draft task}}
{{draft task}}


An   IQ Puzzle   is a triangle of 15 golf tee's.
An IQ Puzzle is a triangle of 15 golf tee's. This is typically seen at Cracker Barrel where one tee is missing and the remaining tees jump each other until one tee is left. The fewer tees left the higher the IQ score. peg #1 is the top centre through to the bottom row which are pegs 11 through to 15.


This puzzle is typically seen at Cracker Barrel   (a USA sales store)   where one tee is missing and the remaining tees jump each other   (with removal of the jumped tee, like checkers)   until one tee is left.

The fewer tees left the higher the IQ score.

Peg   #1   is the top centre through to the bottom row which are pegs 11 through to 15.
<pre>
<pre>
^
^
Line 12: Line 19:
/ 7 8 9 10 \
/ 7 8 9 10 \
/11 12 13 14 15\
/11 12 13 14 15\
/_________________\</pre>
/_________________\
</pre>

Reference picture: &nbsp; http://www.joenord.com/puzzles/peggame/



;Task:
Reference picture: http://www.joenord.com/puzzles/peggame/
Print a solution to solve the puzzle leaving one peg not implemented variations.


Start with empty peg in &nbsp; '''X''' &nbsp; and solve with one peg in position &nbsp; '''Y'''.
;Task description:
<br><br>
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.


=={{header|D}}==
=={{header|D}}==