Flipping bits game: Difference between revisions

m
elided an errant HTML tag.
(→‎{{header|REXX}}: added/changed comments and whitespace, differentiated the target grid from the user's grid, used more consise IF statements.)
m (elided an errant HTML tag.)
Line 3,471:
you won on turn #2</pre>
 
 
== Headline text ==
=={{header|REXX}}==
This REXX version allows the specification (on the invocation line) for:
Line 3,478 ⟶ 3,476:
:::* &nbsp; the number of bits (for the target) to be flipped is the size of the grid &nbsp; (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>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. */
parse arg N u . /*get optional arguments from the C.L. */