-
Notifications
You must be signed in to change notification settings - Fork 1
Open
Labels
Description
Users want the ability to set the Jam to a "shuffle" mode. Some steps this will require:
- Add a shuffle() method to the Jam, which randomizes the indices of all the songs after the song that is currently playing in the Jam.
- Add a global data structure that can store the old indices of each song in the Jam, so that users can toggle in and out of shuffle mode to go back to the original song orderings.
- Add an isShuffled global boolean, which we check in addSong() to determine whether to insert the new song at the end of the list (normal mode) or at a random index (shuffle mode).
Reactions are currently unavailable