Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

the best way to extending the game #2

Open
b14cknc0d3 opened this issue May 29, 2021 · 2 comments
Open

the best way to extending the game #2

b14cknc0d3 opened this issue May 29, 2021 · 2 comments

Comments

@b14cknc0d3
Copy link

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
Copy link
Member

cowpig commented May 31, 2021

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
Copy link
Author

b14cknc0d3 commented Jun 5, 2021

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants