title: writing a compare point method
body: <p>im trying to write a compare point value eg does 1,0 equal 1,0 (true) 
  this is what i have so far.
  any ideas?</p>
  
  <pre><code>class Point 
  
  attr_reader :x, :y
  
  
      def initialize x,y
      @x =x
      @y =y
      end
  
  
  def compare_point(x,y , a,b)   # used to compare points 
  
   if(x=a, y=b)
  
  puts correct
  
  else
  puts wrong
  
   end
  end
  
  end
  
  
  @current_location = Point.new 1,0
  
  
  @start_location = Point.new 1,0
  
  compare_point(@start_location,@current_location)
  </code></pre>