In the initial commit to this project, you have been provided with files that contain a JavaScript module and some associated tests. Currently the 3 supporting functions called by the deliverStormTroopersEscapeScene
function are causing the tests to fail. Your task is to rework these 3 functions so that they work as expected, making the tests pass. This exercise will be completed in class with instuctor assistance.
- Storm Troopers have standing orders to call out to their fellow troopers every time they see a rebel
- Plot armor allows characters to escape after being spotted. Storm Troopers have standing orders to call out to their fellow troopers every time a rebel escapes
- Storm troopers have standing orders to shoot 4 times every time they see rebels, regardless of whether the rebels have escaped or not
.eslintrc.js - a config file for eslint
starWarsScene.js - this file contains a JavaScript module for dealing with Rebel scum
tests.js - this file contains tests for the functions in the starWarsScene
module
package.json - this file sets up the Node project including all the dev dependencies
.gitattributes - this file makes sure that git behaves the way we need it to for Windows machines
.gitignore - this file sets the project up to ignore the node_modules folder when committing to git
You should submit your working changes in a pull request.