Skip to main content
Code Review

Return to Question

replaced http://codereview.stackexchange.com/ with https://codereview.stackexchange.com/
Source Link

I recently wrote a name generator that uses a DTMC underneath (I asked about it here here) and, since I'm not entirely confident I did it right, I wrote a script to check my code, or at least its output.

I recently wrote a name generator that uses a DTMC underneath (I asked about it here) and, since I'm not entirely confident I did it right, I wrote a script to check my code, or at least its output.

I recently wrote a name generator that uses a DTMC underneath (I asked about it here) and, since I'm not entirely confident I did it right, I wrote a script to check my code, or at least its output.

deleted 274 characters in body
Source Link
Jamal
  • 35.2k
  • 13
  • 134
  • 238

So I recently wrote a name generator that uses a DTMC underneath (I asked about it here) and, since I'm not entirely confident I did it right, I wrote a script to check my code, or at least its output.

Note: I've tested it a bit, and it seems to be bug-free, but that doesn't mean it is. Apologies for any errors.

This is the code:

if the dictionary of syllables is located at 'dict.txt'.

Here's an example dictionary file:

a|1|1|b,2;c,2
b|0|3|a,0;c,2
c|0|0|a,1;b,1
a|1|1|b,2;c,2
b|0|3|a,0;c,2
c|0|0|a,1;b,1
Start:
 a : 100%
Connections:
 a:
 c : 40%
 b : 40%
 [end] : 20%
 c:
 a : 50%
 b : 50%
 [end] : 0%
 b:
 c : 40%
 [end] : 60%

(Also if anyone has ideas for other related scripts to write, please comment -- with this done, I'm out of ideas for coding things)

Start:
 a : 100%
Connections:
 a:
 c : 40%
 b : 40%
 [end] : 20%
 c:
 a : 50%
 b : 50%
 [end] : 0%
 b:
 c : 40%
 [end] : 60%

So I recently wrote a name generator that uses a DTMC underneath (I asked about it here) and, since I'm not entirely confident I did it right, I wrote a script to check my code, or at least its output.

Note: I've tested it a bit, and it seems to be bug-free, but that doesn't mean it is. Apologies for any errors.

This is the code:

if the dictionary of syllables is located at 'dict.txt'. Here's an example dictionary file:

a|1|1|b,2;c,2
b|0|3|a,0;c,2
c|0|0|a,1;b,1
Start:
 a : 100%
Connections:
 a:
 c : 40%
 b : 40%
 [end] : 20%
 c:
 a : 50%
 b : 50%
 [end] : 0%
 b:
 c : 40%
 [end] : 60%

(Also if anyone has ideas for other related scripts to write, please comment -- with this done, I'm out of ideas for coding things)

I recently wrote a name generator that uses a DTMC underneath (I asked about it here) and, since I'm not entirely confident I did it right, I wrote a script to check my code, or at least its output.

if the dictionary of syllables is located at 'dict.txt'.

Here's an example dictionary file:

a|1|1|b,2;c,2
b|0|3|a,0;c,2
c|0|0|a,1;b,1
Start:
 a : 100%
Connections:
 a:
 c : 40%
 b : 40%
 [end] : 20%
 c:
 a : 50%
 b : 50%
 [end] : 0%
 b:
 c : 40%
 [end] : 60%
added 10 characters in body
Source Link
anon
anon

Or, if you prefer GitHub, you can see it here

This is the name generator; this script is meant to be used something like this (on Windows, at least):

(Also if anyone has ideas for other related scripts to write, please comment -- with this done, I'm out of ideas for coding things)

For anyone interested, the final code is available here .

Or, if you prefer GitHub, you can see it here

This is the name generator; this script is meant to be used something like this (on Windows, at least):

(Also if anyone has ideas for other related scripts to write, please comment -- with this done, I'm out of ideas for coding things)

This is the name generator; this script is meant to be used something like this (on Windows, at least):

(Also if anyone has ideas for other related scripts to write, please comment -- with this done, I'm out of ideas for coding things)

For anyone interested, the final code is available here .

Source Link
anon
anon
Loading
lang-rb

AltStyle によって変換されたページ (->オリジナル) /