Cheat Engine Forum Index Cheat Engine
The Official Site of Cheat Engine
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 


What methods can I use to determine the next card in a deck?

 
Post new topic   Reply to topic    Cheat Engine Forum Index -> Cheat Engine
View previous topic :: View next topic  
Author Message
407
Master Cheater
Reputation: 0

Joined: 25 Oct 2007
Posts: 357

PostPosted: Thu Jul 16, 2015 12:01 pm    Post subject: What methods can I use to determine the next card in a deck? Reply with quote

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
View user's profile Send private message
atom0s
Moderator
Reputation: 205

Joined: 25 Jan 2006
Posts: 8585
Location: 127.0.0.1

PostPosted: Thu Jul 16, 2015 12:15 pm    Post subject: Reply with quote

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
View user's profile Send private message Visit poster's website
407
Master Cheater
Reputation: 0

Joined: 25 Oct 2007
Posts: 357

PostPosted: Thu Jul 16, 2015 12:20 pm    Post subject: Reply with quote

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
View user's profile Send private message
atom0s
Moderator
Reputation: 205

Joined: 25 Jan 2006
Posts: 8585
Location: 127.0.0.1

PostPosted: Thu Jul 16, 2015 12:29 pm    Post subject: Reply with quote

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
View user's profile Send private message Visit poster's website
Display posts from previous:   
Post new topic   Reply to topic    Cheat Engine Forum Index -> Cheat Engine All times are GMT - 6 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Powered by phpBB © 2001, 2005 phpBB Group

CE Wiki   IRC (#CEF)   Twitter
Third party websites