I am working on a game, and there is a component to this game that will assign a specific name to a creature depending on its attributes. Specifically, I have a set of ints that tell me which attributes the creature in the game possesses, and I need to formulate a name from these particular attributes.
What I was thinking was: assign a syllable to each number 1-47 (via Hashmap) and this way depending on which attribute the animal has the string would be different. However one obvious flaw is that the string would be way too long. I wrote an algorithm that essentially combines syllables if there are over 4 syllables. However this type of approach creates many similar results especially after around 20 syllables have been shrunk down into 4. Does anyone have any ideas on how I could turn a series of integers into a legible word that is somewhat unique? (Some copies are okay, but for the most part I want a unique word for each combination of numbers)
Aucun commentaire:
Enregistrer un commentaire