GithubHelp home page GithubHelp logo

sanctum-solver's Introduction

Sanctum Solver

sanctum-solver is a longest path calculator designed for use with Sanctum and Sanctum 2 (although it may have other applications).

Installation

Requirements:

cargo install --git https://github.com/Iron-E/sanctum-solver --root=<desired install folder>

Usage

Note

See sanctum-solver --help for more options.

sanctum-solver uses JSON files to load map information. A sanctum-solver JSON file has the following fields:

Field Type
name String
grid Tile[][]

…where a Tile is:

Tile Description
"Block" A tile which used to be "Empty", but is now obstructed.
"Core" An object to protect. The "longest path" is created with respect to these tiles.
"Empty" A tile which can be moved through freely, but can have Blocks placed or removed there.
"Impass" A tile which cannot be moved through, nor have its obstruction cleared.
"Pass" A tile which can be moved through freely, but no Blocks may be placed there.
"Spawn" A tile which entities that the Core needs protecting from enter into the map.

Here is an example of the map Park.

Limitations

The output is not guaranteed to be the longest path, as some shortcuts have been taken in order to prioritize speed. However, the output is guaranteed to be a long path which is fairly efficient given the parameters.

sanctum-solver's People

Contributors

iron-e avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.