# Building a simple card deck app

**URL:** https://community.glideapps.com/t/building-a-simple-card-deck-app/74365
**Category:** Ask for Help
**Created:** [June 25, 2024, 12:53pm UTC](https://community.glideapps.com/t/building-a-simple-card-deck-app/74365 "2024-06-25T12:53:18Z")
**Posts on this page:** 6
**Page:** 1

<div class="post-metadata">

### Author: ![joesoes](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/joesoes/32/76950_2.png) [@joesoes](https://community.glideapps.com/u/joesoes)
#### Post date: [June 25, 2024, 12:53pm UTC](https://community.glideapps.com/t/building-a-simple-card-deck-app/74365/1 "2024-06-25T12:53:18Z")

</div>

For some reason, I’m having a hard time to understand relations. What I’m trying to do:

- A user creates decks
- A user can browse a list of cards and add them to the deck
- Then the user can draw a card at random and add it to his/hers hand

---

<div class="post-metadata">

### Author: ![ThinhDinh](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/thinhdinh/32/49_2.png) [@ThinhDinh](https://community.glideapps.com/u/ThinhDinh)
#### Post date: [June 26, 2024, 12:03am UTC](https://community.glideapps.com/t/building-a-simple-card-deck-app/74365/2 "2024-06-26T00:03:41Z")

</div>

What happens after they draw a card to their hand? Is it like a game environment, and you can’t add the same card anymore?

---

<div class="post-metadata">

### Author: ![joesoes](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/joesoes/32/76950_2.png) [@joesoes](https://community.glideapps.com/u/joesoes)
#### Post date: [June 26, 2024, 7:10am UTC](https://community.glideapps.com/t/building-a-simple-card-deck-app/74365/3 "2024-06-26T07:10:50Z")

</div>

The thought is that the user can draw one or more cards from the selected deck (theres several decks). Then the cards should be added to the hand and not being able to be drawn again until it’s resetted - basically how a deck of cards works IRL.

To start, I would be happy to just be able to store the different decks. Drawing cards can be done by using a die with the same number as the number of cards in the deck or something.

---

<div class="post-metadata">

### Author: ![Robert\_Petitto](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/robert_petitto/32/25193_2.png) [@Robert\_Petitto](https://community.glideapps.com/u/Robert_Petitto)
#### Post date: [June 28, 2024, 4:38am UTC](https://community.glideapps.com/t/building-a-simple-card-deck-app/74365/4 "2024-06-28T04:38:14Z")

</div>

What a fun challenge. Here’s a 30-minute POC build!

TL;DW: Use the Data Sets integration 😉

https://www.loom.com/embed/b2eafaf860914b23aeee55a754c36d5f?sid=69e3453c-b9a1-4032-8c75-63c590af57e0

---

<div class="post-metadata">

### Author: ![Robert\_Petitto](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/robert_petitto/32/25193_2.png) [@Robert\_Petitto](https://community.glideapps.com/u/Robert_Petitto)
#### Post date: [June 28, 2024, 4:39am UTC](https://community.glideapps.com/t/building-a-simple-card-deck-app/74365/5 "2024-06-28T04:39:46Z")

</div>

Here’s the template link: [Deck of Cards](https://go.glideapps.com/template/18tsffjcs8ttR398CgA9-template-published?privateTemplateToken=Wlk9OrfXQNu0JzqgiHiu)

🃏 Enjoy!

---

<div class="post-metadata">

### Author: ![World\_in\_Love](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/world_in_love/32/80678_2.png) [@World\_in\_Love](https://community.glideapps.com/u/World_in_Love)
#### Post date: [October 13, 2024, 10:51pm UTC](https://community.glideapps.com/t/building-a-simple-card-deck-app/74365/6 "2024-10-13T22:51:28Z")

</div>

This is super interesting!

I would like to see how this could be used to for my deck that is not a game but I have word prompts to help clients use their imagination. I would like to make it similar to using a tarot deck.
