Cooperative Zendo
Re: Cooperative Zendo
0.0.
1.72.34
2.771.8
0.0.0.
0.0.1.1
13.1234567890123
1.72.34
2.771.8
0.0.0.
0.0.1.1
13.1234567890123
Re: Cooperative Zendo
All yes
Information
Re: Cooperative Zendo
Zero or more repetitions of ( (nonempty string of digits)
.
(number of characters equal to number indicated by previous digit-string) ). If this is ambiguous, please give an example of a string that it fails to assign a classification.Re: Cooperative Zendo
I guess that the rule is: Any string which is either:
- the empty string, or
- the concatenation of: one or more digits;
.
; as many characters as the decimal value of said digits; another string accepted by this rule.
Re: Cooperative Zendo
I’m pretty sure those rules are equivalent except for Unbitwise specifically specifying decimal and Lambda leaving it as assumed, which I would say is valid.
My original wording:
I did consider letting a length of zero be omitted, but had thought this would be harder to discover. I also considered interpreting the length as some programming languages do, where a leading zero makes it (so
Interestingly, Lambda’s was closer to my wording, but Unbitwise closer to my coding:
My original wording:
Code: Select all
Zero or more length-dot-string sections, where "length" is a series of digits interpreted as a base-10 integer, perhaps with leading zeros, and "string" can be any sequence of characters.
010.12345678
would be valid) but that had a number of problems including being much harder to guess. I also considered only having one set allowed, not arbitrarily many, but the entire point of prepending the length of a string is so you can tell how much space it’ll take up, so you can put something else after it.Interestingly, Lambda’s was closer to my wording, but Unbitwise closer to my coding:
Python3 Classify Function
Re: Cooperative Zendo
I wrote it as a recursive working-from-the-left definition because I was concerned about some “non-greedy matching” issues (getting a different number by not using all the digits) but I now see that was unnecessary.
Re: Cooperative Zendo
Unbitwise, Lambda has gone the time before I did. You haven’t been the master yet. Do you want to go next?
Re: Cooperative Zendo
Sure. Got an idea, writing it down…
Re: Cooperative Zendo
Allowed strings: English words (broadly defined) written using only lowercase a-z.
Initial koan:
Initial non-koan:
SHA-1 of rule:
Initial koan:
bookkeeper
Initial non-koan:
witchbells
SHA-1 of rule:
79650df68be392de8cbce43a66e9f968268339b4
Re: Cooperative Zendo
(This post for clarifications in lieu of editing the preceding post.)
If people object to the English words restriction on the grounds it is too fuzzy/dependent-on-external-data I will remove it, but I think it's a fun constraint and the rule doesn't depend on it (that is, you'll never get a yes/no answer depending on the Englishness of a word, since it'll be visibly allowed or not-allowed).
If people object to the English words restriction on the grounds it is too fuzzy/dependent-on-external-data I will remove it, but I think it's a fun constraint and the rule doesn't depend on it (that is, you'll never get a yes/no answer depending on the Englishness of a word, since it'll be visibly allowed or not-allowed).