Monadical-SAS / oddslingers.poker

The Django + React codebase powering the free, open-source poker platform: OddSlingers.com
https://oddslingers.com
GNU Lesser General Public License v2.1
61 stars 19 forks source link

the best way to extending the game #2

Open b14cknc0d3 opened 3 years ago

b14cknc0d3 commented 3 years ago

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..

cowpig commented 3 years ago

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.

b14cknc0d3 commented 3 years ago

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