I developed a cards game locally, and I am able to make it run on the console.
I would like to create a web app for it and allow clients to control the game process from the website.
I already have created classes representing tables, processors (that help running the game by a call to a run() method with an Action as an argument). Each processor run() method call returns a new Action to be filled, so that the client only has to deal with sending data to the server. Is it the right approach ?
I integrated Jersey to my application and wanted to create a Token Auth System for authentication.
I looked at different API and found out that Ably / Pusher / Pub Nub could allow me to handle the communication part.
Ably has some nice features as automatic token renewal after expirer for the authentication, connection recovery, presence, … so I thought I would go for it. 8)
I spent days looking at their documentation and examples but since I am new to web app dev, I am unable to translate their examples based on Spring to Jersey. ???
I read in this forum that I can use TCP/IP instead of HTTP for the communication part, is this the right way to go please ?
How about Authentication to my website (I would like to allow users to auth either using Facebook or their own credentials).
Can I develop both the server and the client in Java and let JavaScript only handle the graphics and sending messages to the server which will take care of the game process, players connections to tables, …
How can I ensure that if a player issues an action, it is his turn to play ? Should it be something that is controlled on the server side ?
I know these are a lot of questions but all this is new to me, any kick in the right direction would be greatly appreciated.
Thank you friends ! ;D