Skip to content

Instantly share code, notes, and snippets.

View lseelenbinder's full-sized avatar

Luke Seelenbinder lseelenbinder

View GitHub Profile
#! /usr/bin/ruby
# This program takes a list of users, their desires, and their possessions.
# Then it asks for a particular user and matches them with the best user
# for their desires.
class User
attr_reader :has, :wants
attr_accessor :score
def initialize (has=[], wants=[])
@score = 0