Solve a Numbrix puzzle: Difference between revisions
Content added Content deleted
m (→{{header|REXX}}: aligned a statement in a DO loop.) |
m (→{{header|REXX}}: added a registered trade mark note.) |
||
Line 1,105: | Line 1,105: | ||
Programming note: the coördinates for the cells used are the same as an X×Y grid, that is, |
Programming note: the coördinates for the cells used are the same as an X×Y grid, that is, |
||
the bottom left-most cell is (1,1) and the tenth cell on row 2 is (2,10). |
the bottom left-most cell is (1,1) and the tenth cell on row 2 is (2,10). |
||
''Hidato'' and ''Numbrix'' are registered trademarks. |
|||
<lang rexx>/*REXX program solves a Numbrix (R) puzzle, it also displays the puzzle and solution. */ |
<lang rexx>/*REXX program solves a Numbrix (R) puzzle, it also displays the puzzle and solution. */ |
||
maxR=0; maxC=0; maxX=0; minR=9e9; minC=9e9; minX=9e9; cells=0; @.= |
maxR=0; maxC=0; maxX=0; minR=9e9; minC=9e9; minX=9e9; cells=0; @.= |