@MrAuer/# Card Flipper Solver (MB)

Files

- main.py

main.py

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22

```
### Program that solves the flip a card then put the next card at the bottom generally
cardCount = 20 #How many cards you begin with
skips = 1 #How many cards you put on the back between skips
def reverse_solution(cardCount, skips):
solution = []
for i in range (cardCount, 1, -1):
solution.append(i) #adds card to top
counter = skips
while counter > 0:
solution.append(solution.pop(0))
counter -= 1
solution.append(1)
solution.reverse()
print solution
reverse_solution(cardCount, skips)
```