Permalink
Switch branches/tags
Nothing to show
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
14 lines (11 sloc) 260 Bytes
require 'gps'
gps = GPS.new([:son_at_home,
:car_needs_battery,
:have_phone_book,
:have_money],
GPS::SCHOOL_OPS)
if gps.solve(:have_money, :son_at_school)
puts "Solved"
else
puts "Not solved"
end