0
How did TCG deck builders restore a deck from hash?
TCG = Trading Card Game A hash is normally a one way street. How can deck builder build a deck from a hash? One idea I have is that they save all decks in a database and the hash works only for integrity. But isn't it a mess of data to save all decks. I mean you can build a deck even if you don't have a account. In the code below I have 2 decks from different games. https://code.sololearn.com/cbkmjL035op2/?ref=app
2 odpowiedzi
0
Hi! You assume that everybody knows what a deck in a game is. I’m not sure that’s the case, but maybe it’s just me…
But it’s seems like you need some kind of dictionary. The keys in a dictinary are all unique. Is this what you needs?
What is a hash in your question; is it something in a game or like a hash function in programming?
Do you mean that the ”hash” represent a type of card, and you should build a set of card depending on only that type of cards?
0
Per Bratthammar thank you for your reply.
I come to the conclusion, that in the first game I posted in my code, they are using the hash as an indentifer. So they save all decks in a database and search them with this hash.
The second game saved all information in the hash itself. So that each card has a specific value.
And in this case I mean with hash a string created with a algorithm.