Magic Land Explorer is a console application designed to help users navigate and explore various destinations within a magical land. The application provides functionalities such as filtering destinations by duration, finding the longest duration destination, sorting destinations by name, and identifying the top 3 destinations with the longest durations.
- Filter by Destination Duration: Allows users to filter destinations based on their duration.
- Find Longest Duration: Identifies the destination with the longest duration.
- Sort Destinations by Name: Sorts all destinations alphabetically by their name.
- Find Top 3 Duration: Lists the top 3 destinations with the longest durations.
To get started with Magic Land Explorer, follow these steps:
- Ensure you have .NET installed on your machine.
- Clone the repository to your local machine.
- Navigate to the project directory.
- Run the application using the command
dotnet run
from the terminal.
- .NET 7.0 or higher
Upon running the application, you will be presented with a menu of options:
- Filter by Destination Duration
- Find Longest Duration
- Sort Destinations by Name
- Find Top 3 Duration
- Exit
Enter the number corresponding to your choice and follow the on-screen instructions.
The application uses a JSON file (MagicLandData.json
) located in the data
directory as its data source. This file contains a list of destinations within the magical land, each with its own set of attributes such as name and duration.
Contributions are welcome. Please feel free to fork the repository and submit pull requests.
This project is licensed under the MIT License - see the LICENSE file for details.