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. -- ~~~)
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
* remove the s routine for plural (doesn't work for all plurals anyway)
* 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'
g.='geese'; g.1='goose' /* a plural without the s */
qq=getRand()
mm=0
2,295

edits