< Summary

Information
Class: Safarimacik.Model.Difficulty
Assembly: Safarimacik
File(s): /builds/szofttech-ab-2025/group-03/safarimacik/model/Difficulty.cs
Line coverage
100%
Covered lines: 7
Uncovered lines: 0
Coverable lines: 7
Total lines: 20
Line coverage: 100%
Branch coverage
N/A
Covered branches: 0
Total branches: 0
Branch coverage: N/A
Method coverage

Feature is only available for sponsors

Upgrade to PRO version

Metrics

MethodBranch coverage Crap Score Cyclomatic complexity Line coverage
.cctor()100%11100%
get_Value()100%11100%
.ctor(...)100%11100%

File(s)

/builds/szofttech-ab-2025/group-03/safarimacik/model/Difficulty.cs

#LineLine coverage
 1namespace Safarimacik.Model;
 2
 3
 4/// <summary>
 5/// Struct for game difficulty.
 6/// </summary>
 7public readonly struct Difficulty {
 8  /// <summary>The win conditions that have to be met for 90 days: 20 tourists, 10-10 animals, 3000 coins</summary>
 19  public static readonly Difficulty Easy = new(90, 20, 10, 3000);
 10  /// <summary>The win conditions that have to be met for 180 days: 40 tourists, 12-12 animals, 5000 coins</summary>
 111  public static readonly Difficulty Medium = new(180, 40, 12, 5000);
 12  /// <summary>The win conditions that have to be met for 360 days: 80 tourists, 20-20 animals, 20000 coins</summary>
 113  public static readonly Difficulty Hard = new(360, 80, 20, 20000);
 14
 115  public (int, int, int, int) Value { get; }
 16
 117  private Difficulty(int timeLimit, int touristLimit, int animalLimit, int moneyLimit) {
 118    Value = (timeLimit, touristLimit, animalLimit, moneyLimit);
 119  }
 20}