|
|
|
|
|
by valuearb
2172 days ago
|
|
I once had to write a version that worked for multiple games. Holdem, Omaha, Omaha 8 or better, Ace to Five, Deuce to Seven, and Badugi. I did it using inheritance, having high and low hand classes. The low ball games just reverse ordinary logic, but Omaha 8 needed both and the 8 or better restrictions. The Badugi class rewrote everything entirely. When I finally finished I was asked to add Stud, Badeucy and Badacey. That’s when I quit. |
|