Closed thunderrabbit closed 6 years ago
Given the coordinates of an upside-down U-shaped swipe like this
XXX X X
XXX
X X
func givenSwipe_showArray(swipeCoordinates)
Should return [3, 1,1,1, 1,0,1]
[3,
1,1,1,
1,0,1]
Where 3 is the width of the swipe and the 1s and 0s show where tiles are (not) located in the swipe.
This will be used to easily create a library of swipes which can be used to define which swipes are required to pass a given level.
Given the coordinates of an upside-down U-shaped swipe like this
XXX
X X
func givenSwipe_showArray(swipeCoordinates)
Should return
[3,
1,1,1,
1,0,1]
Where 3 is the width of the swipe and the 1s and 0s show where tiles are (not) located in the swipe.
This will be used to easily create a library of swipes which can be used to define which swipes are required to pass a given level.