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 8974561
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 15, 20262026-06-15T18:42:31+00:00 2026-06-15T18:42:31+00:00

So, we are building some sort of a ‘debate’ game. There are different game

  • 0

So, we are building some sort of a ‘debate’ game. There are different game types, duel and group discussions, both of them have a couple of defined rules, such as length of the debate, participants limits etc.

debates
    id
    title
    body
    created
    modified

   debate_posts
        id
        debate_id
        body
        user_id
        created
        modified

debate_participants
    user_id
    debate_id

What I need to know is how can I check when the debate is starting (must be at least two participants) Should I store some timestamp or something similar on when the second one joins?

The second thing I’d like to know is how can I define a winner, should I have a third table, defining the “winner” of a debate, user_id and debate_id?

I’m not quite sure what kind of details I should add to the question, but If there are anything you could provide me with, I would be happy to hear about it.

Update

The debaters will be able to make the posts until the time goes out, then there will be other users voting if which users/group wins.

  • 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-15T18:42:32+00:00Added an answer on June 15, 2026 at 6:42 pm

    I’d imagine you’d need a timestamp of when the second participate joins to know when the debate started. Anytime a user joins a debate query debate_participants to see how many distinct users are in that particular debate and if there is one, then the new participant will be the second and set the start timestamp in debates.

    Another way to find out when the debate started would to be to find the earliest time that a post was made in the debate by a second user in the debate_posts table.

    To define a winner, if there is at most one winner, you could just add a winner_id field to debates that is the key to wherever you store users.

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

Sidebar

Related Questions

I'm building some custom content types to capture customer data on a website. Admins
I am building a gaming system where many players can play some sort of
I'm building a physics engine and i had some sort of pseudo-verlet thing going
I'm building some sort of censoring app. I've gotten so far that i can
I'm building some sort of an auditing behavior in an MVC3 app with EF,
I was wondering what are the general steps required in building some sort of
Is there any advantage to using a NoSQL database of some sort as opposed
So, hypothetically, I'm building some sort of real estate application in C#. For each
I'm building an interactive movie of some sort , having more video clips that
This is a 2 part question. 1) Is there some sort of program that

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.