Readme doc updates

This commit is contained in:
DHTMLGoodies
2015-12-28 17:28:21 +01:00
parent d3015694d6
commit 81523dc93f

View File

@@ -314,8 +314,8 @@ which outputs
{"g8":["f7","h7","f8","h8"],"g7":["g6","g5"],"e6":[]} {"g8":["f7","h7","f8","h8"],"g7":["g6","g5"],"e6":[]}
``` ```
where key, example "g8" is from square and ["f7","h7","f8","h8"] are all the valid moves where key, example "g8" is the square of a piece and ["f7","h7","f8","h8"] are all the valid moves
for the king on "g8". for the piece on that square.
In this example, there's a king on e6. However, it cannot move because it is pinned by a white In this example, there's a knight on e6. However, it cannot move because it is pinned by a white
bishop on a2. bishop on a2. Thus, the valid moves array for "e6" is empty.