Skip to content

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.

Notifications You must be signed in to change notification settings

exzizt/BattleSnakeMoveAssertion

Repository files navigation

BattlesnakeMoveAssertion

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.

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

No packages published

Languages