Stupid MegaHAL clone
Switch branches/tags
Nothing to show
Pull request Compare This branch is 2 commits ahead of sstephenson:master.
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
lib
.gitignore
README
example.rb

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."