> After two weeks, if actions have been made on the deck then we throw it away.
I presume this should say if NO actions have been made. Sending the card image URL is wasteful considering the address is deterministic. Also, you will want to implement a true random shuffle if you want anybody to use this API seriously (see https://www.random.org/).
True Random Shuffle is an interesting concept. Is shuffling a deck of cards truly random? What if I tried to simulate the event of shuffling. e.g. split the deck (list) into two, then choose 1-5 cards at a time from each half of the deck to rejoin the cards back into one. Then repeat.
There is a good discussion here (https://news.ycombinator.com/item?id=7207851) about random shuffling in the context of online poker. The specifics of your shuffle algorithm don't really matter if your numbers aren't truly random.
> After two weeks, if actions have been made on the deck then we throw it away.
I presume this should say if NO actions have been made. Sending the card image URL is wasteful considering the address is deterministic. Also, you will want to implement a true random shuffle if you want anybody to use this API seriously (see https://www.random.org/).
This is a really interesting project. Good luck!