Anonymous user
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>
=={{header|REXX}}==
This REXX version allows the specification (on the invocation line) for:
Line 3,478 ⟶ 3,476:
:::* the number of bits (for the target) to be flipped is the size of the grid (the whole row or column)
<br>Programming note: none of the command line parameters ('''N''' and '''u''') are checked for errors (so as to make the
<br>program simpler). 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. */
|