[gbrainy] Fixes verbal analogies bugs
- From: Jordi Mas <jmas src gnome org>
- To: svn-commits-list gnome org
- Cc:
- Subject: [gbrainy] Fixes verbal analogies bugs
- Date: Sat, 29 Aug 2009 11:13:02 +0000 (UTC)
commit 35626c222ae6be98eea5473ccdeb91b1a40006b0
Author: Jordi Mas <jmas softcatala org>
Date: Sat Aug 29 13:12:51 2009 +0200
Fixes verbal analogies bugs
data/verbal_analogies.xml | 2 +-
src/VerbalAnalogies.cs | 9 +++++----
2 files changed, 6 insertions(+), 5 deletions(-)
---
diff --git a/data/verbal_analogies.xml b/data/verbal_analogies.xml
index e696837..4fb7116 100644
--- a/data/verbal_analogies.xml
+++ b/data/verbal_analogies.xml
@@ -1,7 +1,7 @@
<analogies>
<analogy>
<_question>Which of the following sports is the odd one?</_question>
- <_tip>Think of the elements used in the game.</_tip>
+ <_tip>Think of the items used in the game.</_tip>
<_answer>Water polo</_answer>
<_answer>Basketball</_answer>
<_answer>Tennis</_answer>
diff --git a/src/VerbalAnalogies.cs b/src/VerbalAnalogies.cs
index 3a4405b..2bb1b1e 100644
--- a/src/VerbalAnalogies.cs
+++ b/src/VerbalAnalogies.cs
@@ -139,19 +139,20 @@ public class VerbalAnalogies : Game
ArrayListIndicesRandom indices;
string [] answers;
+ int new_right = 0;
indices = new ArrayListIndicesRandom (analogy.answers.Length);
answers = new string [analogy.answers.Length];
indices.Initialize ();
-
+
for (int i = 0; i < indices.Count; i++)
{
answers [i] = analogy.answers [indices[i]];
if (indices[i] == analogy.right)
- analogy.right = i;
+ new_right = i;
}
-
+ analogy.right = new_right;
analogy.answers = answers;
}
@@ -256,7 +257,7 @@ public class VerbalAnalogies : Game
gr.SetPangoLargeFontSize ();
gr.MoveTo (0.1, y);
- gr.ShowPangoText (Catalog.GetString ("Possible answers"));
+ gr.ShowPangoText (Catalog.GetString ("Possible answers are:"));
y += 0.12;
x += 0.1;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]