Task 2 – Partial application for game settings
Apply partial application to create a function for quick setup of standard game settings where the map
is predefined but allows for dynamic setting of difficultyLevel
and isMultiplayer
:
public void SetGameSettings(string map, int difficultyLevel, bool isMultiplayer) { Console.WriteLine($"Setting game on map {map} with difficulty {difficultyLevel}, multiplayer: {isMultiplayer}"); }