Sign in to follow this  

Multiplayer Turn Based Against Random

Recommended Posts


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...


Share this post

Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

  • Recently Browsing   0 members

    No registered users viewing this page.