NaNoGenMo / 2021

National Novel Generation Month, 2021 edition.
45 stars 8 forks source link

Flaubertbot #80

Open fbrzvnrnd2 opened 2 years ago

fbrzvnrnd2 commented 2 years ago

I wrote this simple Flaubertbot in python. I used some phrases taken from Flaubert's Madame Bovary, in italian translation: i) things Emma Bovary thinks about her man (an hyper-Leon) ii) things Emma Bovary does to her man iii) things Emma Bovary says to her man

And vice versa:

i) things Leon thinks about Emma ii) things Leon does to Emma iii) things Leon says to Emma

The different sentences are divided by mood: hate, love, indifference. I used the perlin noise 1d to move the mood from hate, love and indifference. When Leon and Emma pass from one feeling to another, a chapter ends and a new chapter begins.

Some chapters are forced to be only dialogues, some chapters only actions, some chapters only reflections. Other chapters are mixed.

You can find here the code and an example of output: https://github.com/fbrzvnrnd2/nanogenmo2021

I wrote the code while the idea was growing, so it is a very bad code. A lot of duplication.

hugovk commented 2 years ago

Good job! No-one's judging code quality here and we certainly don't mind a bit of code duplication :)