Mastermind is a project mainly written in Ruby, it's free.
mastermind code from Rspec book
404: Not Found