lib/fantasy/coordinates.rb in
fantasy-0.1.7
vs lib/fantasy/coordinates.rb in
fantasy-0.1.9
- old
+ new
@@ -30,6 +30,10 @@
end def clone Coordinates.new(@x, @y) end
+
+ def zero?
+ @x == 0 && @y == 0
+ end
end