https://github.com/bradgarropy/snap-kitchen-competition
🏋🏼 snap kitchen interview question - powerlifting competition
https://github.com/bradgarropy/snap-kitchen-competition
eslint interview javascript node prettier snap-kitchen
Last synced: 3 months ago
JSON representation
🏋🏼 snap kitchen interview question - powerlifting competition
- Host: GitHub
- URL: https://github.com/bradgarropy/snap-kitchen-competition
- Owner: bradgarropy
- License: mit
- Created: 2019-03-28T14:35:01.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2019-04-07T03:57:43.000Z (about 7 years ago)
- Last Synced: 2025-01-18T05:14:24.809Z (over 1 year ago)
- Topics: eslint, interview, javascript, node, prettier, snap-kitchen
- Language: JavaScript
- Homepage:
- Size: 46.9 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 4
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# 🏋🏼 Snap Kitchen Powerlifting Competition
_During an interview with [Snap Kitchen][1], I was asked to complete a coding question and actually run the solution using the editor of my choice. So I fired up [Visual Studio Code][2] and got to work. I really enjoyed this question because it revolved around my hobby of weightlifting._
## ❓ Question
Write a program to simulate a powerlifting meet, where each lifter completes a squat, bench, and deadlift, and determine the winner(s).
Your program should:
- Generate a list of lifters.
- Randomize results for each lifter.
- Determine winners for each lift.
- Squat
- Bench
- Deadlift
- Determine winner for overall total.
Bonus points if your program can:
- Accept the number of lifters as a CLI argument.
- Generate a random profile for each lifter.
- Name
- Gender
- Select winners based on gender.
## 💀 Execution
If you want to see my solution, clone the repository and execute it locally!
```
git clone https://github.com/bradgarropy/snap-kitchen-competition.git
cd snap-kitchen-competition
node index.js -n 10
```
[1]: https://www.snapkitchen.com
[2]: https://code.visualstudio.com