Code Challenge
Challenges
- Game of darts ✔️
- Maximum theft carryaway ✔️
- Ice & Fire ✔️
- IOU tracking ✔️
Requirements
The solution to these challenges has been written in Javascript. As such, the following need to be installed in the environment in which you will run the code.
Optionally, you can tinker with the Js in a browser console for Darts and Knapsack solution.
- Node v12.14.0
- Npm (Pre-installed with Node) or Yarn
- A Github Account - Optional, you can download code as a zip file, extract and open with your favourite terminal to run the commands
- Git - Optional depending on choice of code access as explained above
Ice & Fire
Setup Instructions
Setup Instructions
- git clone https://github.com/Makavura/icenfire.git
- cd icenfire
- npm install
- npm run start
- navigate to http://localhost:3000 to view the running application
Game of Darts
Setup Instructions
Setup Instructions
- git clone https://github.com/Makavura/icubecode.git
- cd icubecode
- npm install
- open darts.js
- call the score function within js file with desired variables e.g score(4, 2);
- run script by executing node ./darts.js
Max Thievery
Setup Instructions
Setup Instructions
- git clone https://github.com/Makavura/icubecode.git
- cd icubecode
- npm install
- run script by executing node ./max.thievery.js
IOU Tracking REST API
Setup Instructions
- git clone https://github.com/Makavura/icubecode.git
- cd icubecode
- npm install
- run server by executing node ./iou.tracker.js
- click run in postman to access endpoints loaded with sample request bodies