Skip to content

Add shuffle mode to Jam #177

@hwray

Description

@hwray

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

Metadata

Metadata

Assignees

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions