How aydesai/coding-challenge works
Project type and purpose
• This repository contains two coding‐challenge starters. The one with real code is “self‐driving‐car,” a .NET/C# console client that interacts with a remote REST API to drive a simulated car around a course. It demonstrates a layered client application (API‐consumer) with domain entities, a service interface, and REST communication logic.
File structure
• Top level:
• elevator/README.md – placeholder for second challenge, no code to analyze here.
• self-driving-car/ – the main project directory.
• Under self-driving-car/src:
• SelfDrivingCar.Client/ – the client application: console entry point, the REST‐client wrapper SelfDrivingCarRestClient.cs, and its .csproj.
• SelfDrivingCar/ – core library:
– Entities/ – domain model classes (Car, Road, SpeedLimit, TokenRequest, etc.).
– ISelfDrivingCarService.cs – service interface defining operations.
– LawsOfMotion.cs – business logic that translates CAR state + commands into next state.
– SelfDrivingCar.csproj – the core library project file.
README for additional insights
• It defines the challenge: drive a car using a hosted REST API, obey speed limits, complete the course as fast as possible.
Elements
• Another for “data models” (Entities).