I have a general question. Just need to be put on the right direction.
I made that little game I put on a server. Now I wish that 2 persons could play against each other online. So I made a signup/login and I can list all the users against which you would like to play. Now how could I know who is actually online and send him/her an alert when it is his/her turn to play?
My first idea was to send emails every time it’s a player’s turn to make a move; reload the updated page… But there must be something more elegant to do in-game?
I’m having a lot of fun coding that thing and any help would be great