SafetyVantage Coding Challenge
			
		
		| documentation | ||
| sample_data | ||
| src | ||
| .eslintrc.cjs | ||
| .gitignore | ||
| .prettierignore | ||
| .prettierrc.json | ||
| package-lock.json | ||
| package.json | ||
| README.md | ||
| snakes_and_ladders.sublime-project | ||
| snakes_and_ladders.sublime-workspace | ||
| tsconfig.json | ||
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