Skip to main content
14 votes

Can you show rng code running in real time in a game?

Yes, you can. There are already online platforms that are doing exactly that, by providing you the hash of the online secret key that is used as the seed for the random generation. Same seed = same ...
Zibelas's user avatar
  • 4,393
3 votes

Can you show rng code running in real time in a game?

See mental poker. That article describes a problem that's a bit harder than the one that you outline, as you are asking merely how to prove to the players that you gave them the "right" ...
Acccumulation's user avatar
1 vote

Poker AI's designed for casual play

Strategically, poker is a very complex game, but there's also a very limited set of actions a player can take. Count 'em: fold, call, check, raise X. So really there's countless ways you can implement ...
congusbongus's user avatar
  • 14.8k
1 vote

How to sort poker hands? c++

You need to determine the class of your hand first. I.e. if the hand is "two pair", "full house" etc. The answer you linked is only meant to compare hands with identical class. It does this by ...
congusbongus's user avatar
  • 14.8k
1 vote
Accepted

Text-based hold 'em game in C using TCP

You might want to look up on finite state machines. The basic idea is that your client can be in one of many different states in which it behaves differently towards both the user and the server. ...
Philipp's user avatar
  • 120k

Only top scored, non community-wiki answers of a minimum length are eligible