[gbrainy] New tip



commit 203a02c8c5ae37c873a798c30caf23bc48855723
Author: Jordi Mas <jmas softcatala org>
Date:   Sun Dec 20 18:00:32 2009 +0100

    New tip

 src/Core/Main/GameTips.cs |   12 ++++++------
 1 files changed, 6 insertions(+), 6 deletions(-)
---
diff --git a/src/Core/Main/GameTips.cs b/src/Core/Main/GameTips.cs
index 20b56b6..0438f1b 100644
--- a/src/Core/Main/GameTips.cs
+++ b/src/Core/Main/GameTips.cs
@@ -29,21 +29,19 @@ namespace gbrainy.Core.Main
 		static int idx = 0;
 	
 		static public int Count {
-			get { return 12; }
+			get { return 13; }
 		}
 
 		// Gets a random tip from the list
 		static public string Tip {
 			get {
-				if (idx + 1 >= Count || random_indices == null) {
+				if (idx + 1 > Count || random_indices == null) {
 					random_indices = new ArrayListIndicesRandom (Count);
 					random_indices.Initialize ();
 					idx = 0;
 				}
-
 				return GetTip (idx++); 
 			}
-
 		}
 
 		static public string GetTip (int tip)
@@ -73,9 +71,11 @@ namespace gbrainy.Core.Main
 				return Catalog.GetString ("Grouping elements into categories is a common technique for remembering things.");
 			case 11:
 				return Catalog.GetString ("Build acronyms using the first letter of each fact to be remembered.");
+			case 12:
+				return Catalog.GetString ("The enjoyment obtained from a puzzle is proportional to the time spent on it.");
+			default:
+				throw new InvalidOperationException ();
 			}
-
-			return string.Empty;
 		}
 	}
 }



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