Isoraqathedh

s-exp-based piece description samples

Mar 15th, 2014
216
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lisp 0.26 KB | None | 0 0
  1. ; (knight) ==>
  2. ((1 . 2) (2 . 1) (2 . -1) (1 . -2) (-1 . 2) (-2 . 1) (-2 . -1) (-1 . -2))
  3.  
  4. ; (rook) ==>
  5. (((0 . 1) (:RANGE :LENGTH :INFINITE)) ((0 . -1) (:RANGE :LENGTH :INFINITE))
  6.  ((1 . 0) (:RANGE :LENGTH :INFINITE)) ((-1 . 0) (:RANGE :LENGTH :INFINITE)))
Advertisement
Add Comment
Please, Sign In to add comment