Exercise sequence pseudocode - abdulrazak01/MC2_HiFIT GitHub Wiki

This is something I figure out but haven't test the logic yet

  1. var advancedDict = Dictionary containing the whole list of activities

  2. var intermediateDict = 1 random activity from category: advanced in advancedDict + (advancedDict - category: advanced)

  3. var beginnerDict = 1 random activity from category: intermediate in intermediateDict + (intermediateDict - category: intermediate - category: advanced )

  4. var beginnerSix = 6 randomly chosen exercise from beginnerDict and sorted not to work the same muscle group one after the other

  5. var intermediateEight = 8 randomly chosen exercise from intermediateDict and sorted not to work the same muscle group one after the other

  6. var advancedTen = 10 randomly chosen exercise from advancedDict and sorted not to work the same muscle group one after the other

  7. 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