/card-rotation-sequence

Reverse card sequence, thanks to a friend

Primary LanguageHTMLMIT LicenseMIT

card-rotation-sequence

Lets assume i have a stack of 10 cards, arranged in a secret sequence.

  1. Take one card out of the stack, and place it on the table.
  2. Take another card out of the stack and place it at the bottom of the same stack.
  3. Goto step 1, and repeat until all cards are over.

The cards on the table are in sequential order.

This program generates the card sequence required to get the desired output.