This is a simple console app built using .NET Core that is used to assert that a snake makes your desired move(s) for each move request JSON file found in a given directory. Runs on Windows, Mac, and Linux. You just need .NET Core, which can be downloaded here: https://dotnet.microsoft.com/download.
Requirements: .NET Core 2.0 or above
Usage
dotnet BattleSnakeMoveAssertion.dll <snake base URI> <path to directory with move assertion files>
Example
dotnet BattleSnakeMoveAssertion.dll http://snakeai.com/api C:\Users\Bob\WorldJSON
Move assertion filename format
<desired direction(s) separated by ->_<bad direction your snake moved>_<anything (e.g., a GUID)>.json
Example 1
up_down_d8edf99a-21s-4326b-915b-d457eb49af6b.json
This means you want your snake to move UP instead of going DOWN.
Example 2
left-right_up_x.json
This means you want your snake to go LEFT or RIGHT instead of going UP.
-
Notifications
You must be signed in to change notification settings - Fork 0
exzizt/BattleSnakeMoveAssertion
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
About
A console app built using C# with .NET Core that is used to assert a snake's moves for each world JSON file found in a given directory.
Resources
Stars
Watchers
Forks
Releases
No releases published
Packages 0
No packages published