Bulls and cows: Difference between revisions
m
Removed the geese as the author of Version 1 found that offensive and/or inappropriate
(→Version 1: indented some DO loops, compressed source code, added DO-END comment label, moved 1-liner subroutines to end of program. -- ~~~) |
Walterpachl (talk | contribs) m (Removed the geese as the author of Version 1 found that offensive and/or inappropriate) |
||
Line 2,579:
* Changes from Version 1:
* ?= -> qq='' (? not everywhere a valid symbol, righthandside mandatory
* on ooRexx)
* implemented singular/plural distinction differently
* change getRand to avoid invalid digit rejection
* check user's input for multiple digits
* add feature MM to ease guessing (MM=Mastermind - a similar game)
* add feature ? to see the solution (for the impatient player)
Line 2,592 ⟶ 2,593:
b.='bulls'; b.1='bull'
c.='cows'; c.1='cow'
qq=getRand()
mm=0
|