-
Notifications
You must be signed in to change notification settings - Fork 0
Open
Labels
Description
Now since the generating algo is so simple, it leaves a possibility of producing duplicates of words. Duplication makes the program look kind of stupid, which it certainly isn't.
Solving this issue can be done in either:
- the generation part, or
- by adding a pre-filter to the word lists -> ensuring essentially no duplicate words exist in global dictionary
Reproduce:
run
node ./dacjesh.js
for some 10-20 times and observe the produced gitles. You'll see word repetiting.
Condition:
happens only when there are same words existing in a pair
(or many pairs) of the name arrays. Since each "round" of generating
the next word into the gitle is totally independent of each other,
it's like flipping coin: in our case, any word from the individual array may be used,
regardless of history-so-far.
Reactions are currently unavailable