diff --git a/07_Basketball/csharp/Shot.cs b/07_Basketball/csharp/Shot.cs index 94ff9b84..fb7c2f3e 100644 --- a/07_Basketball/csharp/Shot.cs +++ b/07_Basketball/csharp/Shot.cs @@ -15,12 +15,13 @@ public class Shot { // Although the game instructions reference two different jump shots, // the original game code treats them both the same and just prints "Jump shot" + 0 => null, <= 2 => new JumpShot(), 3 => new Shot("Lay up"), 4 => new Shot("Set shot"), _ => null }; - return shot is not null; + return shotNumber == 0 || shot is not null; } public static Shot Get(float shotNumber) =>