Sign in to follow this  
o0Corps0o

Multiplayer Turn Based Against Random

Recommended Posts

Hiya,

We've made a turn based instant game where people can choose to play against their friends.. This works fine.
But we're looking at possibly adding the ability to play against a Random Opponent. Has anyone had any experience in making something like this?
At the moment if i put a button on to 'Play Random Player' it will search for another player (matchasync).. and if someone else is looking it will create the link. However, i'm struggling to get my head around it, because i dont really want this and want to know if there is another way? Because what i need it really that you click 'Play Random' and then it starts up the game, player makes their move, and then it sends the game data to a random player?

Share this post


Link to post
Share on other sites

Does matchAsync() return anything when there is a match? ie. does it return who is player1/player2 or something like that?

What i'd like to do is random two players, and one of them will play their move, and the other one will get a 'wait for other player to make their move', type of thing...

Thanks.

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
Sign in to follow this  

  • Recently Browsing   0 members

    No registered users viewing this page.