/** * cards need to be comparable * @param Card $other * @return bool */ public function equals(Card $other) { return $this->kind() === $other->kind() && $this->value() === $other->value(); }