Exercise sequence pseudocode - abdulrazak01/MC2_HiFIT GitHub Wiki
This is something I figure out but haven't test the logic yet
-
var advancedDict = Dictionary containing the whole list of activities
-
var intermediateDict = 1 random activity from category: advanced in advancedDict + (advancedDict - category: advanced)
-
var beginnerDict = 1 random activity from category: intermediate in intermediateDict + (intermediateDict - category: intermediate - category: advanced )
-
var beginnerSix = 6 randomly chosen exercise from beginnerDict and sorted not to work the same muscle group one after the other
-
var intermediateEight = 8 randomly chosen exercise from intermediateDict and sorted not to work the same muscle group one after the other
-
var advancedTen = 10 randomly chosen exercise from advancedDict and sorted not to work the same muscle group one after the other
-
At the end of exercise, if user press repeat circuit, it'll generate new 4, 5, 6.
TODO Single sided workout which means you'll need to do left side and right side, need to be paired one after the other, so if you do a left sided plank @ 30 sec, it needs to be followed up by right sided plank @ 30 sec, it will count as 2 exercise