oddslingers.poker icon indicating copy to clipboard operation
oddslingers.poker copied to clipboard

the best way to extending the game

Open b14cknc0d3 opened this issue 3 years ago • 2 comments

I want to know ,is there possible to add new game type like blackjack . what is the best way to add new game type without breaking existing one thanks..

b14cknc0d3 avatar May 29 '21 06:05 b14cknc0d3

You'd want to start by extending the GameController class.

It is designed specifically for poker games but it would certainly be possible to implement Blackjack.

See the HoldemController, OmahaController, and BountyController for examples of how that class has been extended to implement different gametypes.

cowpig avatar May 31 '21 17:05 cowpig

sorry for late reply,i'm also trying to move all view to api to work with flutter frontend. i think i will extend game type after moving all view to api, i want to separate frontend and backend logic ,thanks

b14cknc0d3 avatar Jun 05 '21 11:06 b14cknc0d3