Guess the number: Difference between revisions

Content added Content deleted
m (→‎{{header|langur}}: replace deprecated ZLS token with "")
Line 1,924: Line 1,924:
val .n = toString random 10
val .n = toString random 10
for {
for {
val .guess = read ">> ", RE/^0*(?:[1-9]|10)(?:\.0+)?$/, "bad data\n", 7, ZLS
val .guess = read ">> ", RE/^0*(?:[1-9]|10)(?:\.0+)?$/, "bad data\n", 7, ""
if .guess == ZLS {
if .guess == "" {
writeln "too much bad data"
writeln "too much bad data"
break
break