Creating a game where you can play online via /r/learnprogramming


Creating a game where you can play online

I'm trying to create a game with socket.io and node, which is works with two players sending data to the server taking turns. The result is displayed afterwards.

Now the issue is, the way I programmed it, only one execution of the game can take place at a single time. How would I implement the ability to have multiple games take place at once? Like having the ability to create and join rooms, etc.

Any help or advice would be appreciated, thanks!

Submitted July 17, 2017 at 04:03AM by ibishell
via reddit http://ift.tt/2vsUCJY

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s