[gbrainy] More clear rationale for age logic puzzle



commit c123256f161a968ab87ccc9309d2d57875ae39ad
Author: Jordi Mas <jmas softcatala org>
Date:   Sun May 1 10:42:06 2011 +0200

    More clear rationale for age logic puzzle

 data/games.xml            |    4 ++--
 tools/GameXmlGetString.cs |    8 ++++----
 2 files changed, 6 insertions(+), 6 deletions(-)
---
diff --git a/data/games.xml b/data/games.xml
index 3b88fb1..ec280f9 100644
--- a/data/games.xml
+++ b/data/games.xml
@@ -73,8 +73,8 @@
 			<question>John's age is nowadays 2 times his son's age. [ago] year ago, John was [proportion] times older than his son. How old is John's son nowadays?</question>
 			<question plural ="[ago]">John's age is nowadays 2 times his son's age. [ago] years ago, John was [proportion] times older than his son. How old is John's son nowadays?</question>
 			<answer>24</answer>
-			<rationale>[ago] year ago, John's age minus [ago] was equal to [proportion] times his son's age minus [ago].</rationale>
-			<rationale plural ="[ago]">[ago] years ago, John's age minus [ago] was equal to [proportion] times his son's age minus [ago].</rationale>
+			<rationale>John's age (variable x) is nowadays 2 times his son's age (variable y), that is x = 2y, and [ago] year ago, John was [proportion] times older than his son: x - [ago] = (y - [ago]) * [proportion].</rationale>
+			<rationale plural ="[ago]">John's age (variable x) is nowadays 2 times his son's age (variable y), that is x = 2y, and [ago] years ago, John was [proportion] times older than his son: x - [ago] = (y - [ago]) * [proportion].</rationale>
 		</variant>
 	</game>
 
diff --git a/tools/GameXmlGetString.cs b/tools/GameXmlGetString.cs
index 72e33f8..7a9887a 100644
--- a/tools/GameXmlGetString.cs
+++ b/tools/GameXmlGetString.cs
@@ -38,8 +38,8 @@ public class GameXmlSttringFactory
 			"John's age is nowadays 2 times his son's age. [ago] years ago, John was [proportion] times older than his son. How old is John's son nowadays?",
 			variable);
 
-		Catalog.GetPluralString ("[ago] year ago, John's age minus [ago] was equal to [proportion] times his son's age minus [ago].",
-			"[ago] years ago, John's age minus [ago] was equal to [proportion] times his son's age minus [ago].",
+		Catalog.GetPluralString ("John's age (variable x) is nowadays 2 times his son's age (variable y), that is x = 2y, and [ago] year ago, John was [proportion] times older than his son: x - [ago] = (y - [ago]) * [proportion].",
+			"John's age (variable x) is nowadays 2 times his son's age (variable y), that is x = 2y, and [ago] years ago, John was [proportion] times older than his son: x - [ago] = (y - [ago]) * [proportion].",
 			variable);
 
 		Catalog.GetPluralString ("A file is protected by a password formed by a [digits] digit number represented in base 10 (ranging from 0 to 9). How many different passwords can you have?",
@@ -54,8 +54,8 @@ public class GameXmlSttringFactory
 			"There are [games] tennis games played simultaneously. How many different forecasts are possible?",
 			variable);
 
-		Catalog.GetPluralString ("How many matches does it take to determine the winner of a tennis tournament that starts with [players] player?",
-			"How many matches does it take to determine the winner of a tennis tournament that starts with [players] players?",
+		Catalog.GetPluralString ("In a tennis tournament, in every match a player is eliminated after losing to a single opponent. How many matches does it take to determine the winner of a tennis tournament that starts with [players] player?",
+			"In a tennis tournament, in every match a player is eliminated after losing to a single opponent. How many matches does it take to determine the winner of a tennis tournament that starts with [players] players?",
 			variable);
 
 		Catalog.GetPluralString ("You have [money] monetary unit in your bank account at 10% compound interest annually. How much money will you have at end of 2 years?",



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