[gbrainy] Fixes bugzilla #661307



commit 99958f70f6fe72a7f26d27dc09c791608547dfb4
Author: Jordi Mas <jmas softcatala org>
Date:   Sat Oct 15 19:09:59 2011 +0200

    Fixes bugzilla #661307

 src/Core/Main/GameAnswer.cs            |    3 ++-
 src/Games/Logic/PuzzleBuildTriangle.cs |    2 ++
 2 files changed, 4 insertions(+), 1 deletions(-)
---
diff --git a/src/Core/Main/GameAnswer.cs b/src/Core/Main/GameAnswer.cs
index f2a504c..681f6c5 100644
--- a/src/Core/Main/GameAnswer.cs
+++ b/src/Core/Main/GameAnswer.cs
@@ -28,7 +28,7 @@ namespace gbrainy.Core.Main
 	public class GameAnswer
 	{
 		static char separator = '|';
-		const int MAX_POSSIBLE_ANSWER = 7;
+		const int MAX_POSSIBLE_ANSWER = 8;
 		string correct;
 		ITranslations translations;
 
@@ -122,6 +122,7 @@ namespace gbrainy.Core.Main
 				return translations.GetString ("G");
 			case 7: // Eighth possible answer for a series
 				return translations.GetString ("H");
+				// When adding new items update MAX_POSSIBLE_ANSWER accordingly
 			default:
 				throw new ArgumentOutOfRangeException ("Do not have an option for this answer");
 			}
diff --git a/src/Games/Logic/PuzzleBuildTriangle.cs b/src/Games/Logic/PuzzleBuildTriangle.cs
index 0041ae0..45590c2 100644
--- a/src/Games/Logic/PuzzleBuildTriangle.cs
+++ b/src/Games/Logic/PuzzleBuildTriangle.cs
@@ -98,6 +98,8 @@ namespace gbrainy.Games.Logic
 			Answer.Correct = answers[0] + " | " + answers[1] + " | " + answers[2];
 			Answer.CheckExpression = Answer.GetMultiOptionsExpression ();
 			Answer.CorrectShow = answers[0] + answers[1] + answers[2];
+			Console.WriteLine ("Answer.Correct  {0}", Answer.Correct);
+			Console.WriteLine ("Answer.CheckExpression  {0}", Answer.CheckExpression);
 		}
 
 		private static void DrawFigure (CairoContextEx gr, double x, double y, Figures figure)



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