[svn] r5866: nemerle/trunk/snippets/the-game: console.n territory.n

malekith svnadmin at nemerle.org
Sun Oct 30 14:18:29 CET 2005


Log:
Don't use the special starts-with-operator rule.

Author: malekith
Date: Sun Oct 30 14:18:28 2005
New Revision: 5866

Modified:
   nemerle/trunk/snippets/the-game/console.n
   nemerle/trunk/snippets/the-game/territory.n

Modified: nemerle/trunk/snippets/the-game/console.n
==============================================================================
--- nemerle/trunk/snippets/the-game/console.n	(original)
+++ nemerle/trunk/snippets/the-game/console.n	Sun Oct 30 14:18:28 2005
@@ -15,9 +15,9 @@
 
   [OverrideObjectEquals] \
   public Equals (other : ColoredChar) : bool
-    Char == other.Char
+    (Char == other.Char 
       && Foreground == other.Foreground
-      && Background == other.Background
+      && Background == other.Background)
 
 module ConsoleBuffer
   mutable current_fg : ConsoleColor = ConsoleColor.Gray

Modified: nemerle/trunk/snippets/the-game/territory.n
==============================================================================
--- nemerle/trunk/snippets/the-game/territory.n	(original)
+++ nemerle/trunk/snippets/the-game/territory.n	Sun Oct 30 14:18:28 2005
@@ -39,14 +39,14 @@
     get
       def check (x, y) { Map [x, y].Exists (_.CanEnter) }
 
-      check (X - 1, Y - 1)
+      (check (X - 1, Y - 1)
         || check (X + 1, Y - 1)
         || check (X - 1, Y + 1)
         || check (X + 1, Y + 1)
         || check (X - 1, Y)
         || check (X, Y - 1)
         || check (X, Y + 1)
-        || check (X + 1, Y)
+        || check (X + 1, Y))
   
 
   public override Draw () : void



More information about the svn mailing list