Skip to content

pile.top() and pile.bottom() return Card(-1) if pile is empty instead of None #2278

@Wirox

Description

@Wirox

The wiki says pile.top() and pile.bottom() return None if the pile is empty. In fact, they return an invalid Card object with id -1.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions