Maze generation: Difference between revisions
Content added Content deleted
m (→simpler version of above: changed the comment in the 2nd REXX section header. -- ~~~~) |
m (→{{header|REXX}}: moved a programming note from the 2nd REXX version to the 1st version. -- ~~~~) |
||
Line 3,812: | Line 3,812: | ||
end /*k*/ |
end /*k*/ |
||
return</lang> |
return</lang> |
||
⚫ | |||
⚫ | |||
'''output''' when using the input of <tt> 23 19 55 </tt> |
'''output''' when using the input of <tt> 23 19 55 </tt> |
||
<br>(using Regina) |
<br>(using Regina) |
||
Line 3,924: | Line 3,926: | ||
/*──────────────────────────────────HOOD subroutine─────────────────────*/ |
/*──────────────────────────────────HOOD subroutine─────────────────────*/ |
||
hood: parse arg rh,ch; return @(rh+2,ch)+@(rh-2,ch)+@(rh,ch-2)+@(rh,ch+2)</lang> |
hood: parse arg rh,ch; return @(rh+2,ch)+@(rh-2,ch)+@(rh,ch-2)+@(rh,ch+2)</lang> |
||
⚫ | |||
⚫ | |||
'''output''' when using the input: <tt> 10 10 </tt> |
'''output''' when using the input: <tt> 10 10 </tt> |
||
<pre style="overflow:scroll"> |
<pre style="overflow:scroll"> |