-
Notifications
You must be signed in to change notification settings - Fork 0
Usage
Options that can be changed within the code:
Folder - where the program is located.
Startyear - year to begin your dynasty from. ie 1066
Endyear - year to end your dynasty. ie 2022
Persons - number of persons in the original generation
Within the folder create txt files:
- FemaleNames.txt
- MaleNames.txt
- LastNames.txt
They are simple list with each line containing one name. For the files FemaleNames.txt and MaleNames.txt popularity of a name depends on its position within the list: the earlier names are more popular than the later names.
After the program is run, it generates a family tree for a royal dynasty like this:
o Edward Campbell (1053-1102) #4
├o HENRY I Campbell (1081-1149) <1134-1149> #111
└o Edmund Campbell (1085-1135) #124
├o HENRY II Campbell (1111-1173) <1149-1173> #228
└o EDWARD I Campbell (1114-1176) <1173-1176> #243
The last number in each line is the personal id. Using the p(id) function you get more information about any person. E.g. if you enter 'p(243)' while being in python shell mode, it will tell you:
EDWARD I Campbell - name
m (1114-1176) <1173-1176> - sex, life, and reign
Father: [124], Mother: [109] - parents' IDs
Spouse(s): [274] - spouses' IDs
Child(ren): [437, 462, 483, 492] - chilren's IDs
<cce> - dynasty code
The dynasty code shows the position of the person within the dynasty. E.g. means 'fifth child of the third child of the third person from the original generation'.
Notes:
Hellerick said this was written in Python2 and that it would need changing for Python3.
It works fine in Python 3.3 for me.