Symta is too difficult even for me So as you know already I have to generate a lot of unique characters procedurally.
And any generation involves some distribution.
So I pulled out of my ass the following statistics:
70% of ladies have long hair
25% have mid hair
5% have short hair
70% of men have short hair
20% have mid hair
5% have long hair
5% are fully bald
In game these are defined as a list
MaleHairLength: 70,short 20,mid 5,long 5,bald
These allow me to settle on the hair length of a character.
I had some code to pick a random sample from such a distribution.
MaleHairLength.find(s~+=?0; p~^(Me{?0}.z*)<<s~).1
That is cryptic and it does really cryptic things inside the find's lambda and (implicitly) outside of it.
Now the problem is that I already forgot the implcit variables semantics I introduced years ago.
Since most of the code is not command line oneliners or math shit.
What is worse, I have never documented it.
So now I had to go over the macros implementing these constructs deciphering them.
And obviously these macros are not simple.
TLDR: I need to document at least the harder parts.
Current Mood: contemplativeCurrent Music: Anvil of Dawn OST