|
Post by msteele999 on Jul 10, 2024 14:50:13 GMT -5
I have created a Python based (with a Windows Exe) dT&T Character Generator that is hosted on github. It is a pre-release and I am actively developing it so if you have any bugs, feature requests, etc. I would appreciate your input. Best regards, Mark dT&T Character Generator v0.0.2
|
|
mosker
5th Level Troll
Posts: 597
|
Post by mosker on Jul 10, 2024 17:36:06 GMT -5
You found the bridge! msteele999...welcome! --Evil_violinista or whatever Reddit calls me
|
|
|
Post by johntgg on Jul 10, 2024 18:31:30 GMT -5
Nice! I have been meaning to take a crack at this in Emacs, but nice to see someone else make an offline character generator. Will clone and take a look at your implementation Welcome to the Bridge!
|
|
|
Post by msteele999 on Jul 11, 2024 7:07:14 GMT -5
Nice! I have been meaning to take a crack at this in Emacs, but nice to see someone else make an offline character generator. Will clone and take a look at your implementation Welcome to the Bridge! Thank you Thank you! Please let me know what you think and areas that need improvement as well as features that need to be added.
|
|
|
Post by msteele999 on Jul 11, 2024 7:07:28 GMT -5
You found the bridge! msteele999 ...welcome! --Evil_violinista or whatever Reddit calls me Thank you!
|
|
|
Post by johntgg on Jul 11, 2024 11:34:22 GMT -5
Nice! I have been meaning to take a crack at this in Emacs, but nice to see someone else make an offline character generator. Will clone and take a look at your implementation Welcome to the Bridge! Thank you Thank you! Please let me know what you think and areas that need improvement as well as features that need to be added. I've used it for some test characters and love the output. The transparency of Attribute: [Original Roll] => [Modified Roll] is fantastic, makes it easier to debug too My only question is how you implemented roll_and_check_triples() - From my reading it seems that it will always roll at least 6 dice? Three when the function is just called and then it will roll 3 more at least once in the "while(len(set(rolls)))" loop. My python may be off here but wouldn't len() just get the length of the set rolls, therefore always roll? But the behavior seems to work as intended as my rolls have been relatively average, so I think this is a 'me' issue in understanding lol
|
|
|
Post by msteele999 on Jul 11, 2024 11:43:14 GMT -5
Thank you Thank you! Please let me know what you think and areas that need improvement as well as features that need to be added. I've used it for some test characters and love the output. The transparency of Attribute: [Original Roll] => [Modified Roll] is fantastic, makes it easier to debug too My only question is how you implemented roll_and_check_triples() - From my reading it seems that it will always roll at least 6 dice? Three when the function is just called and then it will roll 3 more at least once in the "while(len(set(rolls)))" loop. My python may be off here but wouldn't len() just get the length of the set rolls, therefore always roll? But the behavior seems to work as intended as my rolls have been relatively average, so I think this is a 'me' issue in understanding lol Let me look at that - it might be I have some code that is just not doing anything.
|
|
|
Post by 9757532jhsms on Jul 12, 2024 10:01:09 GMT -5
My python is rubbish but remind me how to run it, I use Linux or Mac.
|
|
|
Post by msteele999 on Jul 12, 2024 14:25:04 GMT -5
My python is rubbish but remind me how to run it, I use Linux or Mac. Hmmm. On Windows you simply type python main.py I'm assuming it's the same but done in a Terminal window run python on Mac
|
|
|
Post by 9757532jhsms on Jul 12, 2024 14:32:21 GMT -5
I'll download and test it anon.
|
|
|
Post by Aramis of Erak on Jul 12, 2024 14:36:25 GMT -5
Thank you Thank you! Please let me know what you think and areas that need improvement as well as features that need to be added. I've used it for some test characters and love the output. The transparency of Attribute: [Original Roll] => [Modified Roll] is fantastic, makes it easier to debug too My only question is how you implemented roll_and_check_triples() - From my reading it seems that it will always roll at least 6 dice? Three when the function is just called and then it will roll 3 more at least once in the "while(len(set(rolls)))" loop. My python may be off here but wouldn't len() just get the length of the set rolls, therefore always roll? But the behavior seems to work as intended as my rolls have been relatively average, so I think this is a 'me' issue in understanding lol Python .length() of an item other than a string or numeric is how many sub items are in it, not the memory size of it. the set() command takes an iterable, and removes any duplicate members of the iterable, returning itself as the trimmed list, and if numeric, in sequence by value. Some examples set([3,4,4]) returns {3,4} set([2,4,6]) returns {2,4,6} set([1,1,1]) returns {1} set({2,2,3}) returns {2,3} set([1,1,2,2,3,4,5,6,6]) returns {1,2,3,4,5,6} set("Word Word") returns {'d', 'o', 'r', ' ', 'w'} So, it will only have a len(set(rolls)) if the set() returns only one element.
|
|
|
Post by msteele999 on Jul 12, 2024 14:36:27 GMT -5
I'll download and test it anon. Cool - let me know what you think and anything you'd like to see added / changed.
|
|
|
Post by Aramis of Erak on Jul 12, 2024 14:44:01 GMT -5
My python is rubbish but remind me how to run it, I use Linux or Mac. Assuming it's in your "Downloads" folder... launch a terminal window. type in python3 ~/Downloads/main.py if you've moved it, use wherever you moved it to.
|
|
|
Post by Aramis of Erak on Jul 12, 2024 14:49:59 GMT -5
I have created a Python based (with a Windows Exe) dT&T Character Generator that is hosted on github. It is a pre-release and I am actively developing it so if you have any bugs, feature requests, etc. I would appreciate your input. Best regards, Mark dT&T Character Generator v0.0.2It would help to comment the code a bit more clearly; less end of line and more line before, but it's far from "poorly commented"...
|
|
|
Post by msteele999 on Jul 12, 2024 15:15:16 GMT -5
I have created a Python based (with a Windows Exe) dT&T Character Generator that is hosted on github. It is a pre-release and I am actively developing it so if you have any bugs, feature requests, etc. I would appreciate your input. Best regards, Mark dT&T Character Generator v0.0.2It would help to comment the code a bit more clearly; less end of line and more line before, but it's far from "poorly commented"... Duly noted!
|
|