Just some notes.
Chris Pressey
10 years ago
13 | 13 |
--------------
|
14 | 14 |
|
15 | 15 |
* Put two instances of Eliza into mutual livelock to create dialogue.
|
|
16 |
This was sort of inspired by
|
|
17 |
[Redwreath and Goldstar Have Traveled to Deathsgate](https://github.com/dariusk/NaNoGenMo/issues/10)
|
|
18 |
because I thought two-bots-in-livelock was what that was until it
|
|
19 |
was explained to me that wasn't what it was.
|
16 | 20 |
|
17 | 21 |
Sample Output
|
18 | 22 |
-------------
|
48 | 48 |
|
49 | 49 |
def qualifiers():
|
50 | 50 |
# we can't do the random.choice thing here because Python has eager
|
51 | |
# evaluation. TODO: write a version of this in Haskell
|
|
51 |
# evaluation. Well, I tried to write a version of this in Haskell,
|
|
52 |
# but due to the fact that it needs monads for random numbers, I wasn't
|
|
53 |
# able to write this any more nicely. I might be able to if my
|
|
54 |
# monad-fu wasn't so sucky, but I'd much rather TODO: write some sort of
|
|
55 |
# custom evaluator that lazily evaluates probabilistic grammars!
|
52 | 56 |
i = random.randint(1, 6)
|
53 | 57 |
if i == 1:
|
54 | 58 |
return ["just", qualifiers()]
|