Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
Haythem Elganiny committed Mar 1, 2019
1 parent 0396196 commit 1509560
Showing 1 changed file with 33 additions and 32 deletions.
65 changes: 33 additions & 32 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -73,21 +73,11 @@ EXAMPLES
u v w x <b>a b c d</b>


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 <b>e i m q</b>
i j k l :@diagonal <b>f j n r</b>
m n o p -----------------> <b>g k o s</b>
q r s t [ 4 ... 19 ] <b>h l p t</b>
q r s t subgrid [ 4 ... 19 ] <b>h l p t</b>
u v w x u v w x


Expand All @@ -98,6 +88,17 @@ EXAMPLES
q r s t [ 4 ... 19 ] <b>q m i e</b>
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


</code>
</pre>

Expand All @@ -107,6 +108,22 @@ EXAMPLES
<pre>
<code>

a b c d
e f g h <b>u q m i e a</b>
i j k l :clockwise <b>v r n j f b</b>
m n o p -----------------> <b>w s o k g c</b>
q r s t <b>x t p l h d</b>
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 <b>k o</b> l
m n o p -----------------> m <b>j n</b> 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 <b>d a b c</b>
e f g h <b>h e f g</b>
i j k l :right <b>l i j k</b>
Expand Down Expand Up @@ -139,22 +156,6 @@ EXAMPLES
u v w x <b>a b c d</b>


a b c d
e f g h <b>u q m i e a</b>
i j k l :clockwise <b>v r n j f b</b>
m n o p -----------------> <b>w s o k g c</b>
q r s t <b>x t p l h d</b>
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 <b>k o</b> l
m n o p -----------------> m <b>j n</b> p
q r s t [ 9, 10, 13, 14 ] q r s t
u v w x u v w x


</code>
</pre>

Expand Down Expand Up @@ -199,15 +200,15 @@ 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
<b>0 1 2 3</b>

a b c d a b c d <b>0</b>
e f g h e f g h <b>1</b>
i j k l :@column i j k l <b>2</b>
i j k l :@columns i j k l <b>2</b>
m n o p -----------------> m n o p <b>3</b>
q r s t [ 0, 1, 2, 3, 4, 5 ] q r s t <b>4</b>
u v w x u v w x <b>5</b>
Expand All @@ -223,15 +224,15 @@ EXAMPLES

a b c d <b>0 1 2 3</b>
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
u v w x

a b c d <b>0</b> a b c d
e f g h <b>1</b> e f g h
i j k l :@column <b>2</b> i j k l
i j k l :@columns <b>2</b> i j k l
m n o p -----------------> <b>3</b> m n o p
q r s t [ 0, 1, 2, 3, 4, 5 ] <b>4</b> q r s t
u v w x <b>5</b> u v w x
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 1509560

Please sign in to comment.