An open API service indexing awesome lists of open source software.

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

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