Skip to content

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

@nickmckay

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.

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