Pyramid Solitaire
How to play
- Pick any two cards that total 13 to match and remove them.
- J = 11, Q = 12, K = 13.
- Pick any King to remove it by itself.
- You may not remove cards that have other cards on top of them.
How I made this app
- Make a prototype card using SVG rectangle and text.
- Make a code template for the cards.
- Make 52 cards using the template.
- Shuffle the cards.
- Check whether a card has other cards on top of it.
- Keep track of selected cards.
- Check whether selected cards total 13.
- Make cards invisible once matched.
- Make the draw and discard stacks work together.
Click in this box to resume game play.