It's probably coded so there is no shuffling. When you draw, a card in your deck is randomly selected. There is no temporary random assortment of cards that is there until disturbed by something such as shuffling.
Most programming languages have randomization functions built in. Blizzard probably coded something that knows how many cards are left, and generates a random value that picks one of them. A programmer can speak to this in more detail.
Your cards DO have an order (randomly generated) at the beginning of the game (although, for all intents and purposes, it might as well not have, since you can't interact with the card order).
When you play a card (like Elise, for example) that shuffles a new card into your deck, it does exactly that - shuffles. The new card is put into your deck, and then the order of the cards is re-shuffled.
This was confirmed by the devs, but I don't have a source on hand.
It's probably coded so there is no shuffling. When you draw, a card in your deck is randomly selected. There is no temporary random assortment of cards that is there until disturbed by something such as shuffling.
I don't believe this is true. Your deck starts out randomized but after that the order of cards is maintained for the whole game unless there's some shuffle effect looks Elise or Jade Idol. Gnomeferatu and Fel Reaver interact with the top card(s) of your deck during the opponent's turn so I doubt the "top" card is determined during your draw phase.
As far as how it's randomized I don't know but there's lots of online poker and other card games so I can accept without proof that card randomization is robust in the year 2018.
It properly stores order of cards for sure. Because if you play card draw as Toki in monster hunt and then restart turn it will draw all the same cards no matter how many you drew. So they are ordered in the deck. It is actually faster to do it that way from server performance point of view too, generate shuffled order and store it and just take from the top of the shuffled list is faster then generating random number each time and taking something from the middle of the list.
Your cards DO have an order (randomly generated) at the beginning of the game (although, for all intents and purposes, it might as well not have, since you can't interact with the card order).
When you play a card (like Elise, for example) that shuffles a new card into your deck, it does exactly that - shuffles. The new card is put into your deck, and then the order of the cards is re-shuffled.
This was confirmed by the devs, but I don't have a source on hand.
this. just remember time tinkerer Toki in monster hunter. you would always get the exact same cards when you drew them from your deck, so there is a shuffle simulated.
Your cards DO have an order (randomly generated) at the beginning of the game (although, for all intents and purposes, it might as well not have, since you can't interact with the card order).
When you play a card (like Elise, for example) that shuffles a new card into your deck, it does exactly that - shuffles. The new card is put into your deck, and then the order of the cards is re-shuffled.
This was confirmed by the devs, but I don't have a source on hand.
How soon we forget that the game is rigged (puts tinfoil hat on). Matchmaking, drawing, game results, etc. It's all determined ahead of time. RNG...LUL!
It makes a lot more sense to calculate the deck order once rather than each time you draw. Aside from server efficiency and other practicalities, I'm sure when Blizzard first created this game, they wanted to simulate a real card game as best as possible, and part of that includes shuffling a deck once and maintaining an order. Reshuffling seems to also be something that isn't commonplace (Jade Idol, Elise), but perhaps in the future there will be more support in HS to deck order, as there is in other TCG (for example, in Yugioh, how some cards are placed "at the top or bottom of your deck".
Say in the future there is a priest card that says "Choose a minion and place it at the bottom of your opponent's deck" your opponent will not see that card again until the end of the game. However, what if they play a card that says "shuffle your deck and draw a card" suddenly that high priority minion has a chance to make it to your hand again.
Or, take into account the fact that Gnomeferatu discards the top card of your deck, or say Naturalize mill druid received more support. It could lead to an offensive discard meta. A counter could be something like "place all your legendary cards in your deck at the bottom of your deck" to ensure they are safe. Maybe there's a legendary that says "Reorder your deck in mana-cost order" .
It's probably coded so there is no shuffling. When you draw, a card in your deck is randomly selected. There is no temporary random assortment of cards that is there until disturbed by something such as shuffling.
I don't believe this is true. Your deck starts out randomized but after that the order of cards is maintained for the whole game unless there's some shuffle effect looks Elise or Jade Idol. Gnomeferatu and Fel Reaver interact with the top card(s) of your deck during the opponent's turn so I doubt the "top" card is determined during your draw phase.
As far as how it's randomized I don't know but there's lots of online poker and other card games so I can accept without proof that card randomization is robust in the year 2018.
Looks like it's not true, but what you're saying isn't evidence against it. A "select a random card" function could be easily written so it wouldn't care when it's called or where the card ends up (drawn, or jousted, or burned). Hearthstone may not work this way, but at least some card games out there almost certainly do.
How is it randomly generated? Does it number all the cards and then.....something lol
It's like asking how McDonald's get their beef. Doesn't matter 1 percent to the consumer.
Love the example but it's a poor one for this particular instance. People are going insane to find out what is in their food! :p
Rollback Post to RevisionRollBack
Experienced Deckbuilder, Legend Player, Wild Expert, TCG Veteran and Contributing Author toWildHS & Vicious Syndicate. Any and all support is greatly appreciated as it helps me make further quality content. 🐺 ➣Twitter ➣Decks ➣Patreon
Your cards DO have an order (randomly generated) at the beginning of the game (although, for all intents and purposes, it might as well not have, since you can't interact with the card order).
When you play a card (like Elise, for example) that shuffles a new card into your deck, it does exactly that - shuffles. The new card is put into your deck, and then the order of the cards is re-shuffled.
This was confirmed by the devs, but I don't have a source on hand.
Interesting, I'm curious why they did it this way. Aside from Toki, which is very recent, I'm not sure how it would have changed anything.
It was probably done this way to allow design space for future cards that potential effect draw order or the deck directly. If everything was random generated there wouldnt be a space for cards that interact with decks or there would need to be an overhaul in the coding to create any future cards that do, both of which, have little logic by creating more work and/or less design space.
Just because something's isn't currently in the game doesn't mean the game wasn't designed to include that opportunity. Toki in monster hunt is a prime example of a test bed for the mechanic. Maybe we'll see more of it in a future expansion by way of cards with deck effects.
Your cards DO have an order (randomly generated) at the beginning of the game (although, for all intents and purposes, it might as well not have, since you can't interact with the card order).
When you play a card (like Elise, for example) that shuffles a new card into your deck, it does exactly that - shuffles. The new card is put into your deck, and then the order of the cards is re-shuffled.
This was confirmed by the devs, but I don't have a source on hand.
Interesting, I'm curious why they did it this way. Aside from Toki, which is very recent, I'm not sure how it would have changed anything.
It was probably done this way to allow design space for future cards that potential effect draw order or the deck directly. If everything was random generated there wouldnt be a space for cards that interact with decks or there would need to be an overhaul in the coding to create any future cards that do, both of which, have little logic by creating more work and/or less design space.
Just because something's isn't currently in the game doesn't mean the game wasn't designed to include that opportunity. Toki in monster hunt is a prime example of a test bed for the mechanic. Maybe we'll see more of it in a future expansion by way of cards with deck effects.
Not only future design, but computationally, it is better to randomly generate an ordering of 30 cards once, then randomly generate a card out of a deck each time you draw. It may seem small, but this random generation is being done thousands of times in thousands of game every minute. Programmers who code for large games and projects really have to optimize every little thing to save compuational power and hence, money. Although computationally both proccesses are equivelent, in the former, it only has to be done once per game, and then the draw is set on auto pilot.
Rollback Post to RevisionRollBack
To post a comment, please login or register a new account.
Does anyone know how shuffling is simulated in hearthstone? If so how does it work?
It's probably coded so there is no shuffling. When you draw, a card in your deck is randomly selected. There is no temporary random assortment of cards that is there until disturbed by something such as shuffling.
There’s no shuffle. A draw is randomly generated from your card pool.
So far there are no cards that let you stack a deck order, although I think there was a brawl or two that did.
How is it randomly generated? Does it number all the cards and then.....something lol
Most programming languages have randomization functions built in. Blizzard probably coded something that knows how many cards are left, and generates a random value that picks one of them. A programmer can speak to this in more detail.
Everyone is wrong.
Your cards DO have an order (randomly generated) at the beginning of the game (although, for all intents and purposes, it might as well not have, since you can't interact with the card order).
When you play a card (like Elise, for example) that shuffles a new card into your deck, it does exactly that - shuffles. The new card is put into your deck, and then the order of the cards is re-shuffled.
This was confirmed by the devs,
but I don't have a source on hand.EDIT: Source...
https://twitter.com/bbrode/status/689197114329440256
If you thought you knew what you think I know, then you'd know I knew you knew I know.
It properly stores order of cards for sure. Because if you play card draw as Toki in monster hunt and then restart turn it will draw all the same cards no matter how many you drew. So they are ordered in the deck. It is actually faster to do it that way from server performance point of view too, generate shuffled order and store it and just take from the top of the shuffled list is faster then generating random number each time and taking something from the middle of the list.
I am envoy from nowhere in nowhere. Nobody and nothing have sent me. And though it is impossible I exist. ©Trimutius
Woeden#1173 - NA
If the draws are random why didn’t toki’s hero power change our draws?
No! EVERYONE!!! is WRONG!
How soon we forget that the game is rigged (puts tinfoil hat on). Matchmaking, drawing, game results, etc. It's all determined ahead of time. RNG...LUL!
Sincerely,
Kappa
"There is no spoon"
It makes a lot more sense to calculate the deck order once rather than each time you draw. Aside from server efficiency and other practicalities, I'm sure when Blizzard first created this game, they wanted to simulate a real card game as best as possible, and part of that includes shuffling a deck once and maintaining an order. Reshuffling seems to also be something that isn't commonplace (Jade Idol, Elise), but perhaps in the future there will be more support in HS to deck order, as there is in other TCG (for example, in Yugioh, how some cards are placed "at the top or bottom of your deck".
Say in the future there is a priest card that says "Choose a minion and place it at the bottom of your opponent's deck" your opponent will not see that card again until the end of the game. However, what if they play a card that says "shuffle your deck and draw a card" suddenly that high priority minion has a chance to make it to your hand again.
Or, take into account the fact that Gnomeferatu discards the top card of your deck, or say Naturalize mill druid received more support. It could lead to an offensive discard meta. A counter could be something like "place all your legendary cards in your deck at the bottom of your deck" to ensure they are safe. Maybe there's a legendary that says "Reorder your deck in mana-cost order" .
That example totally does matter.
Love the example but it's a poor one for this particular instance. People are going insane to find out what is in their food! :p
It was probably done this way to allow design space for future cards that potential effect draw order or the deck directly. If everything was random generated there wouldnt be a space for cards that interact with decks or there would need to be an overhaul in the coding to create any future cards that do, both of which, have little logic by creating more work and/or less design space.
Just because something's isn't currently in the game doesn't mean the game wasn't designed to include that opportunity. Toki in monster hunt is a prime example of a test bed for the mechanic. Maybe we'll see more of it in a future expansion by way of cards with deck effects.
Not only future design, but computationally, it is better to randomly generate an ordering of 30 cards once, then randomly generate a card out of a deck each time you draw. It may seem small, but this random generation is being done thousands of times in thousands of game every minute. Programmers who code for large games and projects really have to optimize every little thing to save compuational power and hence, money. Although computationally both proccesses are equivelent, in the former, it only has to be done once per game, and then the draw is set on auto pilot.