JMemory and scoring

JMemory and scoring

by Deborah Delin -
Number of replies: 6

Hi Gordon,

Because it is a memory game Jmemory is obviously problematic to score and students usually end up getting a low score even if they have made quite a good attempt.  This can be discouraging for little ones so I would like to tweak the settings so that they don't see their low score, if possible.  I can set the weighting as "no weighting" but the students don't know about the weighting. 

I wondered if you had a tip for this.

Thanks in advance.

Deborah

Average of ratings: -
In reply to Deborah Delin

Re: JMemory and scoring

by Gordon Bateson -
Picture of Core developers Picture of Peer reviewers Picture of Plugin developers
Hi Deborah,
what score do you think the student should get? 100% if completed, and 0% otherwise. That's not possible at the moment, but it is an interesting idea.
Gordon
In reply to Gordon Bateson

Re: JMemory and scoring

by Deborah Delin -

Hi Gordon,

Yes, I suppose that would be better than them getting 9% for doing quite well.......

Is there a way I can alter the settings so that the score doesn't show up atall?

Deborah

In reply to Deborah Delin

Re: JMemory and scoring

by Glenys Hanson -
Hi Gordon and Deborah,

Here's what Martin wrote some time ago:

Date: Sun, 17 Jul 2005 16:19:07 -0700

From: Martin Holmes <mholmes@uvic.ca>
Subject: Re: cloze - hints

Hi Ines

ines martina wrote:
> Hi Martin,
(.....)
> I've looked at the jcloze6.js_ (newes version of hot
> potatoes) but I don't know what I could change in
> there to exclude the hint buttons from the
> calculation of the end result.
> Is it rather simple or complicated to manage that?

Find this function:

function ShowClue(ItemNum){
if (Locked == true){return;}
State[ItemNum].ClueGiven = true;
ShowMessage(I[ItemNum][2]);
}

then comment out the middle line:

function ShowClue(ItemNum){
if (Locked == true){return;}
// State[ItemNum].ClueGiven = true;
ShowMessage(I[ItemNum][2]);
}


Would this apply to JMemory?

Cheers,
Glenys
In reply to Glenys Hanson

Re: JMemory and scoring

by Gordon Bateson -
Picture of Core developers Picture of Peer reviewers Picture of Plugin developers

> Would this apply to JMemory?

JMemori is based on JMatch, so there are no hints, no clues and no ShowClue function sad

You could change the JMemori javascript function that calculates the score:

  • locate the CalculateScore() function in quiz's html file or in the JMemori template file, jmatch6.ht_
  • change this line ...
    ThisScore = Math.floor((z*100)/s);
  • ... to this ...
    ThisScore = (Pairs==F.length ? 100 : Math.floor((z*100)/s));

Or if you don't want to get your hands dirty, so as to speak, you could set the score weighting for this quiz to "No weighting" (on QuizPort's "Updating: quiz" page). Then students could see their JMemori scores, but these would not count toward the QuizPort grade.

HTH
Gordon

In reply to Glenys Hanson

Re: JMemory and scoring

by Deborah Delin -

That's perfect!  Thanks very much Gordon.  That piece of script stops the quiz from giving a score.  The student just sees a "well done" message when he finishes.  Much better!  Thank you.

Deborah

In reply to Deborah Delin

Re: JMemory and scoring

by Deborah Delin -

Correction, it gives a 100% score when student finishes memory game.  Even better.  Thanks very much.