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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 13, 20262026-06-13T08:59:22+00:00 2026-06-13T08:59:22+00:00

I am doing some research at the moment into creating a new maths game

  • 0

I am doing some research at the moment into creating a new maths game for primary school children where divs from 0-9 appear at random inside a container.

A question is given at the beginning. Something like, multiples of 20. The user will then have to click on the correct ones, and they will then be counted at the end and a score will be given.

So at the moment I have the basic structure, divs pop up and you click them and it adds to the correct answer, meaning there is no wrong answer at this point in time.

I want to know what the best way of determining the right and wrong answers is. Is there and algorithm that I can use that will work out whether the answers are right or wrong, and how would I link it to the divs?

<div id="container">
    <div id="char1" class="character right1" vaule="1"></div>
    <div id="char2" class="character right2" vaule="2"></div>
    <div id="char3" class="character right3" vaule="3"></div>
    <div id="char4" class="character right4" vaule="4"></div>
    <div id="char5" class="character right5" vaule="5"></div>
    <div id="char6" class="character right6" vaule="6"></div>
    <div id="char7" class="character right7" vaule="7"></div>
    <div id="char8" class="character right8" vaule="8"></div>
    <div id="char9" class="character right9" vaule="9"></div>
    <div id="char9" class="character right0" vaule="0"></div>
</div>

wrong answers will be given the class “.wrong” as apposed to “.right”

Fiddle: http://jsfiddle.net/SKB3Q/10/

  • 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-13T08:59:23+00:00Added an answer on June 13, 2026 at 8:59 am

    The first thing you need to do is come up with a question for any notion of right or wrong to make sense.

    For example: “Click all numbers that are greater than 20”

    The second thing you need to do is express this question as a boolean expression that evaluates to true or false.

    (selection>20)
    

    Then evaluate this expression for each selection to determine whether it is right or wrong.

    Here is an example of what I mean. Before the game starts, the script adds the appropriate class to each element. The question is “Select all numbers greater than 5”

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

Sidebar

Related Questions

I am doing some research into geolocation in web pages. I have set up
I’m doing some research into the capabilities of Windows Azure for an European company.
I am doing some research into platform independent code and found mention of the
After doing some research into Dateperiod, it turns out it by default excludes the
I am doing some research into methods of comparing time series data. One of
I'm doing some research into databases and I'm looking at some limitations of relational
I'm doing some research into using log4net, and I found the IObjectRenderer interface interesting.
I've just been doing some research into sql data services, and found out that
I've been doing some research into taking my programming experience and moving into the
I am currently doing some research on capturing images from an SLR camera, either

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.