Time for a new Backend
Because the backend I had felt like to basic stuff that a framework could do much better I started using Spring framework. It reduced so much work and improved my code by a lot. So I deleted my manual written server code and went for the framework. And it was a great decision.
Spring
It is a great framework that makes adding endpoints very easy. And using the RestControllers as well as normal Controllers make communication a lot easier via JSON. And the overall structure is supported by the good structuring of the generated template.
Logic
I created the classes Game, Poker and Player but I’m not sure for the final server/game structure jet
Frontend
To test the backend you need of course a corresponding frontend. I added an start page to enter your name, create and join an game. I also added a function that takes a value and turns in into chip stacks. Next is the websocket to run the actual poker game along with the frontend running this
Comments 0
No comments yet. Be the first!
Sign in to join the conversation.