From 150956087fcf7a686b915b5867d91cb608ba2574 Mon Sep 17 00:00:00 2001 From: Haythem Elganiny Date: Fri, 1 Mar 2019 16:56:45 -0500 Subject: [PATCH] Update README.md --- README.md | 65 ++++++++++++++++++++++++++++--------------------------- 1 file changed, 33 insertions(+), 32 deletions(-) diff --git a/README.md b/README.md index c05f324..3116904 100644 --- a/README.md +++ b/README.md @@ -73,21 +73,11 @@ EXAMPLES u v w x a b c d - a b c d a b c d - e f g h e f g h - i j k l :diagonal i j k l - m n o p -----------------> m n o p - q r s t q r s t - u v w x u v w x - - # fails becuase Grid.is-square === `False` - - a b c d a b c d e f g h e i m q i j k l :@diagonal f j n r m n o p -----------------> g k o s - q r s t [ 4 ... 19 ] h l p t + q r s t subgrid [ 4 ... 19 ] h l p t u v w x u v w x @@ -98,6 +88,17 @@ EXAMPLES q r s t [ 4 ... 19 ] q m i e u v w x u v w x + + a b c d a b c d + e f g h e f g h + i j k l :diagonal i j k l + m n o p -----------------> m n o p + q r s t q r s t + u v w x u v w x + + # fails becuase Grid.is-square === False + + @@ -107,6 +108,22 @@ EXAMPLES
 
 
+    a b c d
+    e f g h                          u q m i e a
+    i j k l       :clockwise         v r n j f b
+    m n o p    ----------------->    w s o k g c
+    q r s t                          x t p l h d
+    u v w x
+
+
+    a b c d                          a b c d
+    e f g h                          e f g h
+    i j k l     :@anticlockwise      i k o l
+    m n o p    ----------------->    m j n p
+    q r s t    [ 9, 10, 13, 14 ]     q r s t
+    u v w x                          u v w x
+
+
     a b c d                          d a b c 
     e f g h                          h e f g
     i j k l         :right           l i j k
@@ -139,22 +156,6 @@ EXAMPLES
     u v w x                          a b c d
 
 
-    a b c d
-    e f g h                          u q m i e a
-    i j k l       :clockwise         v r n j f b
-    m n o p    ----------------->    w s o k g c
-    q r s t                          x t p l h d
-    u v w x
-
-
-    a b c d                          a b c d
-    e f g h                          e f g h
-    i j k l     :@anticlockwise      i k o l
-    m n o p    ----------------->    m j n p
-    q r s t    [ 9, 10, 13, 14 ]     q r s t
-    u v w x                          u v w x
-
-
 
 
@@ -199,7 +200,7 @@ EXAMPLES a b c d a b c d e f g h e f g h - i j k l :@row i j k l + i j k l :@rows i j k l m n o p -----------------> m n o p q r s t [ 0, 1, 2, 3 ] q r s t u v w x u v w x @@ -207,7 +208,7 @@ EXAMPLES a b c d a b c d 0 e f g h e f g h 1 - i j k l :@column i j k l 2 + i j k l :@columns i j k l 2 m n o p -----------------> m n o p 3 q r s t [ 0, 1, 2, 3, 4, 5 ] q r s t 4 u v w x u v w x 5 @@ -223,7 +224,7 @@ EXAMPLES a b c d 0 1 2 3 e f g h a b c d - i j k l :@row e f g h + i j k l :@rows e f g h m n o p -----------------> i j k l q r s t [ 0, 1, 2, 3 ] m n o p u v w x q r s t @@ -231,7 +232,7 @@ EXAMPLES a b c d 0 a b c d e f g h 1 e f g h - i j k l :@column 2 i j k l + i j k l :@columns 2 i j k l m n o p -----------------> 3 m n o p q r s t [ 0, 1, 2, 3, 4, 5 ] 4 q r s t u v w x 5 u v w x @@ -452,7 +453,7 @@ Returns `True` if `:@indices` is a subgrid of `Grid`, `False` otherwise. ### is-square method is-square ( --> Bool:D ) { ... } -Returns `True` if `Grid` is a square, `False` otherwise. +Returns `True` if `Grid` is a square, False otherwise. AUTHOR