gbrainy r504 - in trunk/src: . MemoryGames
- From: jmas svn gnome org
- To: svn-commits-list gnome org
- Subject: gbrainy r504 - in trunk/src: . MemoryGames
- Date: Mon, 19 Jan 2009 18:47:03 +0000 (UTC)
Author: jmas
Date: Mon Jan 19 18:47:02 2009
New Revision: 504
URL: http://svn.gnome.org/viewvc/gbrainy?rev=504&view=rev
Log:
2009-01-19 Jordi Mas <jmas softcatala org>
* MemoryGames/MemoryFacts.cs: Give more time to the user for this
test since it requires understanding text.
Modified:
trunk/src/ChangeLog
trunk/src/Memory.cs
trunk/src/MemoryGames/MemoryFacts.cs
Modified: trunk/src/Memory.cs
==============================================================================
--- trunk/src/Memory.cs (original)
+++ trunk/src/Memory.cs Mon Jan 19 18:47:02 2009
@@ -54,6 +54,14 @@
get { return Game.Types.MemoryTrainer;}
}
+ public int TotalTime {
+ get { return total_time;}
+ set {
+ total_time = value;
+ time_left = value;
+ }
+ }
+
public override void Initialize ()
{
timer = new System.Timers.Timer ();
Modified: trunk/src/MemoryGames/MemoryFacts.cs
==============================================================================
--- trunk/src/MemoryGames/MemoryFacts.cs (original)
+++ trunk/src/MemoryGames/MemoryFacts.cs Mon Jan 19 18:47:02 2009
@@ -83,6 +83,10 @@
quest_idx = random.Next (facts [fact_idx].Length);
question = facts [fact_idx].questions [quest_idx];
right_answer = (facts [fact_idx].answers [quest_idx]).ToString ();
+
+ // Since this particular test requires to read and understand text
+ // lets give the user twice time to be able to understand the text properly
+ TotalTime = TotalTime * 2;
}
Fact GetFact (int index)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]