Skip to content

Commit

Permalink
Add logging statements to PetHelper.cs for debugging purposes
Browse files Browse the repository at this point in the history
  • Loading branch information
rpothin committed Apr 23, 2024
1 parent a2ecb81 commit 6c47213
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -202,8 +202,10 @@ public static bool ArePetHapppinessPointsCorrectlyUpdatedAfterCuddleActivity(Ser

// Check if the happiness points are correctly updated
if (happinessPointsBeforeCuddle + _cuddleHappinessPoints >= _initialHappinessPoints) {
Console.WriteLine("1");
return happinessPoints == _initialHappinessPoints;
} else {
Console.WriteLine("2");
// Consider the option that the happiness points already decreased by 10
return happinessPoints == happinessPointsBeforeCuddle + _cuddleHappinessPoints || happinessPoints == happinessPointsBeforeCuddle + _cuddleHappinessPoints - 10;
}
Expand Down

0 comments on commit 6c47213

Please sign in to comment.