Skip to content

is_higher_trumpf_than(...) produces type error #3

@NarCodeX

Description

@NarCodeX

Class: "Card"
Function: "is_higher_trumpf_than(self, other)"

Current

The function tries to apply the '>' operator on the internal dictionary trumpf_rank of the two cards instead of comparing their actual trumpf value retrieved by get_trumpf_rank. This results in a type error when calling the function.

Expected

The function returns a boolean value of 'TRUE' when the card specified as parameter for comparison has a lower trumpf rank value.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions