object oriented programming with APEX, playing card probability simulation.
Code will deal the cards with the help of Deck object. Then the outcome will be recorded every round. After millions of simulations, probability of poker hands will be calculated.
- Card
- Hand
- Deck
┌─────┐┌─────┐
│....♦││....♣│
│..A..││..K..│
│♦....││♣....│
└─────┘└─────┘
┌─────┐┌─────┐
│....♠││....♥│
│..J..││..Q..│
│♠....││♥....│
└─────┘└─────┘
Flop (3), Turn (1) and River (1) Cards
┌─────┐┌─────┐┌─────┐ ┌─────┐ ┌─────┐
│....♣││....♠││....♦│ │....♠│ │....♦│
│..3..││..5..││..7..│+│..4..│+│..2..│
│♣....││♠....││♦....│ │♠....│ │♦....│
└─────┘└─────┘└─────┘ └─────┘ └─────┘
About Developer | |
---|---|
Repos | github.com/attila5287 |
Profile | attila5287.github.io |
[email protected] |