Solve the no connection puzzle: Difference between revisions
Content added Content deleted
m (→unannotated solutions: added/changed comments, whitespace, and indentations.) |
m (→unannotated solutions: fixed typos.) |
||
Line 1,369: | Line 1,369: | ||
<lang rexx>/*REXX program solves the "no-connection" puzzle (the puzzle has eight pegs). */ |
<lang rexx>/*REXX program solves the "no-connection" puzzle (the puzzle has eight pegs). */ |
||
parse arg limit . /*number of solutions wanted.*/ /* ╔═══════════════════════════╗ */ |
parse arg limit . /*number of solutions wanted.*/ /* ╔═══════════════════════════╗ */ |
||
if limit=='' | |
if limit=='' | limit=="." then limit=1 /* ║ A B ║ */ |
||
/* ║ /│\ /│\ ║ */ |
/* ║ /│\ /│\ ║ */ |
||
@. = /* ║ / │ \/ │ \ ║ */ |
@. = /* ║ / │ \/ │ \ ║ */ |