SafetyVantage Coding Challenge
Go to file
2022-05-27 06:14:58 -07:00
documentation Initial commit 2022-05-27 05:54:26 -07:00
sample_data Initial commit 2022-05-27 05:54:26 -07:00
src Added help command line option 2022-05-27 06:08:57 -07:00
.eslintrc.cjs Initial commit 2022-05-27 05:54:26 -07:00
.gitignore Initial commit 2022-05-27 05:54:26 -07:00
.prettierignore Initial commit 2022-05-27 05:54:26 -07:00
.prettierrc.json Initial commit 2022-05-27 05:54:26 -07:00
package-lock.json Initial commit 2022-05-27 05:54:26 -07:00
package.json Initial commit 2022-05-27 05:54:26 -07:00
README.md Added README 2022-05-27 06:14:58 -07:00
snakes_and_ladders.sublime-project Initial commit 2022-05-27 05:54:26 -07:00
snakes_and_ladders.sublime-workspace Initial commit 2022-05-27 05:54:26 -07:00
tsconfig.json Initial commit 2022-05-27 05:54:26 -07:00

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 ssh://git@git.n0m.org:24/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