🎉 Celebrating 25 Years of GameDev.net! 🎉

Not many can claim 25 years on the Internet! Join us in celebrating this milestone. Learn more about our history, and thank you for being a part of our community!

How to create turn base system for tic tac toe game with PUN

Started by
4 comments, last by hplus0603 4 years, 4 months ago

I'm doing the multiplayer tic tac toe game on inity. I already made the intelligence system against the bot. But now I plan to do multiplayer. I'm using photon network. I don't know where it starts. I need to make the system to check which is the player's turn to play.

I read the PunTurnManager class in this article https://doc.photonengine.com/en-us/pun/v1/demos-and-tutorials/package-demos/rockpaperscissors-demo But I don't know how to implement the script in my game.

Can you help me?

Advertisement

Did you download the code for the rock-paper-scissors project?

If you look through that code for the PunTurnManager, do you see how it's used in that game example?

If so, what's different about your game, such that you can't transfer that use method?

enum Bool { True, False, FileNotFound };

i loved turn based games, but only some of them, like heroes of might and magic, and fallout 2.

@hplus0603 i downloaded rock-paper-scissors. The project doesn't use PunTurnBased in its concept, It is also not online. But thanks.

This is the turn based demo link:

https://doc.photonengine.com/en-us/pun/v1/demos-and-tutorials/package-demos/rockpaperscissors-demo

It says this:

This document gives an overview how to implement such games, based on our Rock Paper Scissors Demo, which is in the PUN Package.

Are you saying that the turn-based demo for the Photon multiplayer networking package, is not multi-player? Or are you looking at some other Rock-Paper-Scissors?

enum Bool { True, False, FileNotFound };

This topic is closed to new replies.

Advertisement