PopAye - A C# starter kit for Halite 3 written for .NET Core and VS Code. Works in Visual Studio as well with a few adjustments
Copy halite.exe into root directory and run the batch file to start.
If you would like to use the built-in VS Code debugger to debug your code then do this:
- in MyBot.cs, uncomment the below line:
// while(!Debugger.IsAttached); - In the bat file, uncomment the last line which has the
--no-timeoutflag set and comment out the line which is for normal operations. - Run the simulation. At this point the simulation should freeze on the initialisation of the bot.
- Ensure that you have set a break point somewhere in your code.
- In Visual Studio Code, go to the Debug window and select
.NET Core Attachfrom the Debug drop down. - Select dotnet.exe running Halite3.dll and your break points should start working.