- script.js
JavaScript
/**
* MufFit v0.1
* Author: @muffbot
* License: CatoFree, NoDogs
*/
var foodInGrams = 100;
var sleepInHours = 15;
/*
We store the weight of the food in the foodInGrams variable.
The sleep time is stored in the sleepInHours variable.
We will be saving integers to both variables.
I will get 3 jumps for every 10 grams of the food I ate.
For example: need to make 15 jumps for eating 50 grams of food.
We’ll store the jumps count in the jumps variable.
For every hour of sleep, I get 2 pull-ups.
For example: I slept for 5 hours and now have to do 10 pull-ups.
We’ll store the pull-ups count in the pulls variable.
Each jump comes with a round of running, each pull-up, a half of a round.
For example: you get 20 rounds around the room for 15 jumps and 10 pull-ups.
We’ll store the runs count in the runs variable.
*/