sstephenson / minihal

Stupid MegaHAL clone — Read more

This URL has Read+Write access

name age message
file .gitignore Loading commit data...
file README
directory lib/
README
% irb -r lib/minihal
>> brain = Minihal::Brain.new
=> #<Minihal::Brain:0x5e1e24 @network={}>
>> Minihal.string_to_sequences(IO.read("ulysses.txt")).each { |sequence| brain.learn(sequence) }; nil
=> nil
>> brain.query.to_sentence
=> "He winked in a good stock of rock, sigh the other in the path of innumerable quires and marvellous exhibition of her 
voice: one sees us today i oughtnt to reflect."