node@20
- NodeJS at version 20.x.x
nvm
- Node Version Manager, can be installed with homebrewnvm use
- Command to ensure you are using a compatible version of NodeJS
npm install
- Install dependenciesnpm start
- Run application
npm run test
- Run unit testsnpm run test:watch
- Run tests and listen for file changes (git required)npm run test:watchAll
- Run tests and listen for file changes (no git initialisation required)
This project uses esbuild
npm run build
: Produce a bundled build to thedist/
folder
- Add debug option which outputs a grid visualisation
- Handle collisions where
n > 2
cars collide in a single cell
- When
n > 2
cars collide in a single cell, the latest arriving car will be considered to have collided with the earliest arriving car, interim arrivals will be ignored - Cars are considered collided when they both occupy the same cell on the field