Flipping bits game: Difference between revisions

Content added Content deleted
m (elided an errant HTML tag.)
m (→‎{{header|REXX}}: elided a character from the REXX section header.)
Line 3,476: Line 3,476:
:::*   the number of bits (for the target) to be flipped is the size of the grid   (the whole row or column)
:::*   the number of bits (for the target) to be flipped is the size of the grid   (the whole row or column)
<br>Programming note: &nbsp; none of the command line parameters &nbsp; ('''N''' &nbsp; and &nbsp; '''u''') &nbsp; are checked for errors (so as to make the
<br>Programming note: &nbsp; none of the command line parameters &nbsp; ('''N''' &nbsp; and &nbsp; '''u''') &nbsp; are checked for errors (so as to make the
<br>program simpler). &nbsp; A fair amount of coding was added to check for a legal "move:".
<br>program simpler). &nbsp; A fair amount of coding was added to check for a legal "move".
<lang rexx>/*REXX program presents a "flipping bit" puzzle. The user can solve via it via C.L. */
<lang rexx>/*REXX program presents a "flipping bit" puzzle. The user can solve via it via C.L. */
parse arg N u . /*get optional arguments from the C.L. */
parse arg N u . /*get optional arguments from the C.L. */