[gbrainy] Fixes problem



commit 09d5682846c52725ad93ea41f925ab9d8fcb6133
Author: Jordi Mas <jmas softcatala org>
Date:   Wed Jun 30 01:25:07 2010 +0200

    Fixes problem

 data/games.xml |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/data/games.xml b/data/games.xml
index 3d29548..c26dc8a 100644
--- a/data/games.xml
+++ b/data/games.xml
@@ -56,9 +56,9 @@
 			<variables>
 				int father = 46;
 				int difference = 2 + random.Next (8);
-				int son = (father - difference) / 2;
+				int son = (father / 2) - difference;
 			</variables>
-			<_question>John's is 46 years old. His son is [difference] years older than twice John's age. How old is John's son?</_question>
+			<_question>John's is 46 years old. His son is [difference] years younger than half of John's age. How old is John's son?</_question>
 			<answer>[son]</answer>
 		</variant>
 		<variant>



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]