Closed chrisjstevenson closed 9 years ago
Thanks for checking out the API. I think the problem is that you first have to draw the card from the deck before you can add it to a pile. If that doesn't work, let me know and I can look into it further.
On Wed, Jun 3, 2015 at 12:05 PM, chrisjstevenson notifications@github.com wrote:
I'm trying to add a card to pile...
Request: http://deckofcardsapi.com/api/deck/rt3ge4ytwfew/pile/discard/add/?cards=2S,KS
Response: {"remaining": 52, "deck_id": "rt3ge4ytwfew", "success": true, "piles": {"discard": {"remaining": 0}}}
Should "remaining" be 2 and not 0?
— Reply to this email directly or view it on GitHub https://github.com/crobertsbmw/deckofcards/issues/25.
Yep, that works, thanks!
I'm trying to add a card to pile...
Request: http://deckofcardsapi.com/api/deck/rt3ge4ytwfew/pile/discard/add/?cards=2S,KS
Response: {"remaining": 52, "deck_id": "rt3ge4ytwfew", "success": true, "piles": {"discard": {"remaining": 0}}}
Should "remaining" be 2 and not 0?