Finished testing and docs for now. Time for new features!

This commit is contained in:
2025-10-02 23:58:24 -06:00
parent 279658f3e5
commit b8f54b44a3
16 changed files with 316 additions and 66 deletions
+5
View File
@@ -41,6 +41,11 @@ class Position
return "(#{@x_pos}, #{y_pos})"
end
# Custom comparison. We need to check the the point is the same, not the
# identity.
#
# @param other [Positon] The position to compare with
# @return [Boolean] If they are in the same position as each other.
def ==(other)
return other.x_pos == @x_pos && other.y_pos == @y_pos
end