Sending Data to Server/Client

Hi everyone,
Our group is a newly created group and just start learning about PUN. We want to create a Playing Card game like Poker, where 4 player connect to a room to play. Now we want to know the cards each player have, so that we can apply algorithm to each player. Currently we are using Photon Cloud to develop and test, but from what we saw, Photon Cloud is use for connecting player to Photon server and communicating between players, and the data is sent from client to Photon server. Since we are using Photon cloud, we don't know what the content of the data sent from the client to the server is. To know the card of each players, should we hosted a Photon server of our own so that we know what the cards of each player are? Or should we make a Master client for each game to gather data and apply algorithm automatically?
Any help is appreciated.

Comments

  • Waaaaa
  • Hi @SolveGame,

    I think both ways are possible. You can either host Photon Server yourself and develop a server application or implement a plugin to inject custom source code, or - and that might be the easier way to start - you can still use the Cloud and let the MasterClient handle all card related events and pass data to the other clients.

    For the beginning I would recommend you working through the Basics Tutorial and other guide or tutorial sources to see how Photon works, how to synchronize objects, how to send data, and so forth.

    If you have further questions, please feel free to ask.