I am experimenting with generating believable characters/clues for a little mystery game (mostly as an exercise for learning Swift 2).I am a big fan of mysteries, and most games that have randomly generated mysteries have problems with making rare things too common, and also bad correlations (e.g. a 6'5 man with size 4 shoes). I would like my characters to have characteristics (e.g. eye color, blood type, etc...) that generally match real world numbers. It doesn't have to be perfect but the 2 main characteristics that I would like:Rare things should only show up rarely (and common ones commonly)Correlation between factors should be believableI am currently handling the second by having a fixed order in which the characteristics are chosen (Gender then Height, etc...), and altering the frequencies of later stages based on the earlier results. I am open to better solutions for that as well. I am also taking into account familial relations when generating relatives... but that is another topic.As an exa
Topic:
Programming Languages
SubTopic:
Swift
Tags: