-
Notifications
You must be signed in to change notification settings - Fork 0
/
stretches.py
44 lines (39 loc) · 2.85 KB
/
stretches.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
#!/usr/bin/python3
from models import Move
def defineStretches(movesGraph, difficulty = 1) -> None:
"""Add in a few stretches?"""
movesGraph['upwardDogStretches'] = Move.twoSides('Upward Dog Stretch', 'Push your %(same)s shoulder forward', 10, movesGraph['upwardDog'])
Move.moveReverse(movesGraph['upwardDogStretches'])
movesGraph['halfSplits'] = Move.twoSides('Half Splits', 'Half Splits', 10) #add better description?
movesGraph['splits'] = Move.twoSides('Splits', 'Splits, %(same)s foot forward', 10)
if difficulty < 1:
movesGraph['upwardDog'].addMove(*movesGraph['upwardDogStretches'])
def linkStretchesMain(movesGraph, difficulty = -1) -> None:
raise NotImplemented
def linkCooldown(movesGraph, difficulty = 1) -> None:
"""Links cooldown moves in."""
movesGraph['twistedHeadToKnee'] = Move.twoSides("Twisted Head To Knee", "Take your %(same)s hand and grab the inside of your %(same)s foot.\
Lean sideways over your %(same)s leg.", 30, movesGraph['seatedMeditation'], movesGraph['staff'], movesGraph['lieOnBack'])
movesGraph['preztel'] = Move.twoSides("Preztel", "Take your %(same)s foot and put it in front of your %(other)s knee. Pull your \
%(other)s knee towards you", 30, movesGraph['lieOnBack'])
movesGraph['four'] = Move.twoSides("Four", "Four pose, %(same)s side", 30, movesGraph['supportedShoulderStand'])
for i in movesGraph['four']: i.addLateMove(movesGraph['lieOnBack'])
Move.moveReverse(movesGraph['four'], movesGraph['preztel'], movesGraph['twistedHeadToKnee'])
movesGraph['child'].addMove(*movesGraph['childsPoseSideStretch'])
movesGraph['downwardDog'].addMove(movesGraph['table'], movesGraph['child'], movesGraph['lieOnBack'])
movesGraph['vinyasa'].addMove(movesGraph['child'], movesGraph['lieOnBack'], movesGraph['staff'], movesGraph['upwardDog'])
movesGraph['staff'].addMove(movesGraph['hero'])
movesGraph['seatedMeditation'].addMove(*movesGraph['cowFace'])
movesGraph['seatedMeditation'].addMove(*movesGraph['seatedTwist'])
movesGraph['seatedMeditation'].addMove(*movesGraph['twistedHeadToKnee'])
movesGraph['mountain'].addMove(movesGraph['backBend'], *movesGraph['standingSideStretch'])
movesGraph['mountain'].addMove(*movesGraph['standingTwist'])
movesGraph['backBend'].removeMove(*movesGraph['standingSideStretch'])
movesGraph['crow'].addMove(movesGraph['child'])
movesGraph['lieOnBack'].addMove(*movesGraph['preztel'])
movesGraph['supportedShoulderStand'].addMove(*movesGraph['four'])
for i in movesGraph['birdOfParadise']: i.addMove(movesGraph['mountain'])
for i in movesGraph['sidePlank']: i.addMove(movesGraph['lieOnFront'])
for i in movesGraph['sidePlankLegUp']: i.addMove(movesGraph['lieOnFront'])
for i in movesGraph['standingLegLift1']: i.addMove(movesGraph['mountain'])
if difficulty >= 1: movesGraph['wheel'].promoteLate()