Skip to content

KraetSpg/walter-group

Repository files navigation

WALTER GROUP Hackathon: Sustainable Logistics

This is the C# agent Replit template for the
WALTER GROUP Hackathon: Sustainable Logistics which you can use to get started quickly. Click on the green Use Template button!

Organiser WALTER GROUP Join Slack chat

All questions about the simulation and its rules are answered under Simulation.

Prerequisites

  • Replit account - Create a new Replit account here

Where should I add the logic of my truck agent?

  • Open the file Logistics.Hackathon/Program.cs
  • The line app.MapPost("/decide", async (DecideRequest request) => will always be called by the simulation when the next decision is needed from your truck agent. The argument of this method contains all the information you need to decide for the next move. Just return an instance of DecideRequest and the simulation will take over again. You can use HackathonMap to get the full map with all the information of the locations on the map.

How can I run my truck agent?

  • Just click on the green > Run button at the top of the Replit website.

What about tests?

  • Open the file Logistics.Hackathon.Tests/Tests.cs
  • This is an integration test which will start your agent and will call the decide method with the contents of file Test/Tests/Resources/sample_decide_0.json
  • You can always change the test and debug your script.
  • Also checkout the other sample requests provided.
  • To run the tests go to the left side panel in Replit, look for the "Shell" entry and click on it. A new shell tab will open and there execute the following command: dotnet test

Can I get more information about the model properties?

Sure, check out our API documentation and also thoroughly read our Simulation documentation.

About

Walter Group Hackathon

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages