Bulls and cows: Difference between revisions

Content added Content deleted
(Added XPL0 example.)
(→‎{{header|REXX}}: point at version 2)
Line 6,063: Line 6,063:
:::::::* Master Mind
:::::::* Master Mind
===version 1===
===version 1===
'''See version 2 for a better formatted progtam that also runs on ooRexx.'''<br>
This REXX version of Bulls and Cows doesn't allow repeated digits (in the computer-generated number),
This REXX version of Bulls and Cows doesn't allow repeated digits (in the computer-generated number),
<br>nor the use of the zero digit.
<br>nor the use of the zero digit.
Line 6,201: Line 6,202:
ser: Say '*** error ***' arg(1); Return
ser: Say '*** error ***' arg(1); Return
</syntaxhighlight>
</syntaxhighlight>

=={{header|Ring}}==
=={{header|Ring}}==
<syntaxhighlight lang="ring">
<syntaxhighlight lang="ring">