Closed jmiller-io closed 7 years ago
Jake, Thanks! I'm glad you like it. Currently, you can only draw from the top of the stack or pick out the specific card you want. If you want to submit a PR, I would be happy to review it and include it in the api. It can be added to the views.py file ( https://github.com/crobertsbmw/deckofcards/blob/master/deck/views.py) and the method could be called "def shuffle_pile(request, pile_name):" I would add this myself, but work and family are eating up all my time right now, so the api doesn't get as much time as I would like.
Best, -Chase Also, I would love to hear (or see) anything that you build with it.
On Sun, May 7, 2017 at 9:50 AM Jake Miller notifications@github.com wrote:
Really digging this API. Thanks for all this.
Quick question. How do you go about drawing a card from the bottom of a pile or shuffling the cards in a pile? I can't find any documentation for that.
I've tried this: https://deckofcardsapi.com/api/deck/ <
>/pile/< >/shuffle/ https://deckofcardsapi.com/api/deck/ < >/pile/< >/draw/bottom Thank you. -Jake
— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/crobertsbmw/deckofcards/issues/36, or mute the thread https://github.com/notifications/unsubscribe-auth/AFkFnjy7BNamR-8PqM5BRcWl961v_Iaxks5r3ehBgaJpZM4NTMa_ .
Hey Chase,
Thanks for the quick response. Got ya. What I ended up doing was make an initial call to the API for a deck and then just split and store the user piles in local variables. I haven't worked with Python but have been wanting to learn. This is a good opportunity. I forked the repo and plan on digging in and seeing if I can do that. I'm just making a very simple JS War game.
-Jake
Sounds awesome. Let me know when you are done with it. I would love to see it.
Best, Chase
On Fri, May 12, 2017 at 11:20 AM Jake Miller notifications@github.com wrote:
Hey Chase,
Thanks for the quick response. Got ya. What I ended up doing was make an initial call to the API for a deck and then just split and store the user piles in local variables. I haven't worked with Python but have been wanting to learn. This is a good opportunity. I forked the repo and plan on digging in and seeing if I can do that. I'm just making a very simple JS War game.
-Jake
— You are receiving this because you commented.
Reply to this email directly, view it on GitHub https://github.com/crobertsbmw/deckofcards/issues/36#issuecomment-301135634, or mute the thread https://github.com/notifications/unsubscribe-auth/AFkFnimMMbUxBwKLeKPNo5txez2uWlY1ks5r5JTUgaJpZM4NTMa_ .
Really digging this API. Thanks for all this.
Quick question. How do you go about drawing a card from the bottom of a pile or shuffling the cards in a pile? I can't find any documentation for that.
I've tried this: https://deckofcardsapi.com/api/deck/<>/pile/<>/shuffle/
https://deckofcardsapi.com/api/deck/<>/pile/<>/draw/bottom
Thank you. -Jake