I want to make a simple online card game with several players using PHP / Ajax. I probably need socket programming (I want it to be in real time). I worked with sockets before in Java, but not for an online program, but only for a network game. I searched, but I really did not find comprehensive code. Also another problem is that several games can be played simultaneously, and I do not want them to interrupt each other. How to manage them?
Could you guys give me a simple idea of how to do this? Do I need to write two codes, one for management (host) and another for clients? Is it possible to test such programs on localhost (xampp)?
Any simple codes will also be appreciated.
Thanks in advance.
user1253460
source
share