Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 9270049
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 18, 20262026-06-18T15:16:33+00:00 2026-06-18T15:16:33+00:00

I am trying to build a simple turn-based facebook game on javascript. So in

  • 0

I am trying to build a simple turn-based facebook game on javascript. So in my game when a player (i.e Alex) presses a submit button and ends his turn, it is another player’s (i.e Jack) turn. My problem is the following: At first the game runs on Alex’s pc. Then, after an event trigger on Alex’s pc, the game must go on (or make a new instance of it) on Jack’s pc.Is it part of a request dialog (player to player)? How can I implement this?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-18T15:16:34+00:00Added an answer on June 18, 2026 at 3:16 pm

    If you want to do something like SongPop, where it doesn’t matter when exactly second player will take his turn, you can simply do this in those few steps:

    1. Alex starts a game taking his turn.
    2. When his turn is over, your app tells Alex to tell Jack that it’s his turn now, using requests dialogs.
    3. Jack logs to Facebook and see notification with request from Alex.
    4. When Jack clicks on this notification, he is taken to the app.
    5. Each time user enter homepage of your app your app checks if there are any requests to be processed and removed.
    6. App allows Jack to take his turn in the game that Alex started.

    If you want users to take more turns, like for example in chess game, steps 2-6 will be repeated. And, of course, think about informing player that didn’t take the last turn when the game is over.

    If you want to do something like Rummikub, where each player have to be online in the same time, your logic would be more complicated and you will not use app requests to notify user that he should take his turn. In this case you would need realtime checking of actions taken by players and informing other players about those actions.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am trying to build simple two player Game application in ASP.net/C#. I am
I'm trying to build a simple Maps app based on the hello map tutorial
Trying to build a simple 1-1 with XMPP protocol like on facebook ( offline,
Im trying to build a simple faye realtime based notification system so I can
I am trying to build a simple div based popup which can be used
I'm trying to build simple facebook application with 4.2.1 C# SDK. But I have
I'm trying to build a simple guessing game. I'm having a weird problem: -(int)setRandom
I'm trying to build a simple side scroller with an airplane being the player.
I just started trying to build simple GUIs because I've always used command-line script
i am trying to build simple php crawler for this purpose i am getting

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.