Corrected chessboard example

A chessboard is 8 x 8. Yours was 8 x 9.
This commit is contained in:
Jack Hooper 2014-01-18 16:33:40 +11:00
parent 8447a9dfdb
commit 06d41f7cd0

View File

@ -363,7 +363,7 @@ In hy, you could do these like:
(list-comp
(, x y)
(x (range 9)
(x (range 8)
y "ABCDEFGH"))
; [(0, 'A'), (0, 'B'), (0, 'C'), (0, 'D'), (0, 'E'), (0, 'F'), (0, 'G'), (0, 'H'),
@ -374,7 +374,6 @@ In hy, you could do these like:
; (5, 'A'), (5, 'B'), (5, 'C'), (5, 'D'), (5, 'E'), (5, 'F'), (5, 'G'), (5, 'H'),
; (6, 'A'), (6, 'B'), (6, 'C'), (6, 'D'), (6, 'E'), (6, 'F'), (6, 'G'), (6, 'H'),
; (7, 'A'), (7, 'B'), (7, 'C'), (7, 'D'), (7, 'E'), (7, 'F'), (7, 'G'), (7, 'H'),
; (8, 'A'), (8, 'B'), (8, 'C'), (8, 'D'), (8, 'E'), (8, 'F'), (8, 'G'), (8, 'H')]
Python has support for various fancy argument and keyword arguments.