SafetyVantage Coding Challenge
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
Ben Ashton b6252a49ec Fixed Git clone URL in README for public use 10 months ago
documentation Initial commit 10 months ago
sample_data Initial commit 10 months ago
src Added help command line option 10 months ago
.eslintrc.cjs Initial commit 10 months ago
.gitignore Initial commit 10 months ago
.prettierignore Initial commit 10 months ago
.prettierrc.json Initial commit 10 months ago
README.md Fixed Git clone URL in README for public use 10 months ago
package-lock.json Initial commit 10 months ago
package.json Initial commit 10 months ago
snakes_and_ladders.sublime-project Initial commit 10 months ago
snakes_and_ladders.sublime-workspace Initial commit 10 months ago
tsconfig.json Initial commit 10 months ago

README.md

SafetyVantage Coding Challenge

A ranking system for the Snakes & Ladders championship.

Build

Run the following commands to clone the repository and build the project

git clone https://git.n0m.org/n0m/Snakes-And-Ladders.git
cd Snakes-And-Ladders
npm install
npm run build

Usage

To run the project with the provided sample data, use the following command

npm run sample

The project also accepts a number of command line options for using your own game boards, game logs and game configurations. Usage is as follows:

Usage: npm start -- boardFile gameLogFile [options]
  options:
    -h --help                 Print this message
    -m --maxPlayersPerGame    Maximum players per game
    -d --debug                Print stack trace on error

Authors