View previous topic :: View next topic |
Author |
Message |
407 Master Cheater
Reputation: 0
Joined: 25 Oct 2007 Posts: 357
|
Posted: Thu Jul 16, 2015 12:01 pm Post subject: What methods can I use to determine the next card in a deck? |
|
|
Say I have a deck of 52 cards and I want to "predict" the next card.
What are some ways I can achieve this?
|
|
Back to top |
|
 |
atom0s Moderator
Reputation: 205
Joined: 25 Jan 2006 Posts: 8585 Location: 127.0.0.1
|
Posted: Thu Jul 16, 2015 12:15 pm Post subject: |
|
|
Keep track of all previous cards that have been displayed (also known as counting cards) and then you can create a probability on what will come next with the other part of the deck that has not been dealt yet. Granted, you can only give a percent chance of each card coming up, there is no real way for you to do much more then that since the deck is shuffled.
_________________
- Retired. |
|
Back to top |
|
 |
407 Master Cheater
Reputation: 0
Joined: 25 Oct 2007 Posts: 357
|
Posted: Thu Jul 16, 2015 12:20 pm Post subject: |
|
|
atom0s wrote: | Keep track of all previous cards that have been displayed (also known as counting cards) and then you can create a probability on what will come next with the other part of the deck that has not been dealt yet. Granted, you can only give a percent chance of each card coming up, there is no real way for you to do much more then that since the deck is shuffled. |
I can create a program in any programming language to calculate this.
I was hoping I could use cheat engine to tell me what the next card is.
I assume the deck of cards has each card value or index stored as an array. I'm just not sure how to use cheat engine to show me this information.
|
|
Back to top |
|
 |
atom0s Moderator
Reputation: 205
Joined: 25 Jan 2006 Posts: 8585 Location: 127.0.0.1
|
Posted: Thu Jul 16, 2015 12:29 pm Post subject: |
|
|
It depends on how the game handles the deck of cards.
If the array is pre-shuffled then each card used is popped off a stack of cards then you should be able to read the stack of cards and get the next one easily.
If the game shuffles the rest of the deck each time a card is being pulled, then you may run into issues getting it before the game uses it without creating a code-cave etc. But given how I think you want to use it, that will probably be too late to get the info.
_________________
- Retired. |
|
Back to top |
|
 |
|