Skip to content

Create a function where an owner can play with a specific cat #18

Description

@nickmckay

Write a function called play(Cat) to play with the cat specified by the "Cat" parameter. When the cat is played with its energy parameter decreases by 1 and its mood parameter increases by 1.

  • Write the play() function in the Owner class in human.py.
  • Edit the docstrings for this function, including usage a example.
  • Create a test for the new function.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

enhancementNew feature or request

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions