Instantly share code, notes, and snippets.

Embed
What would you like to do?
Transcript of bad chess playing
CL-USER 1 > (load #P"/Users/agam/Lisp/chess.lisp")
; Loading text file /Users/agam/Lisp/chess.lisp
#P"/Users/agam/Lisp/chess.lisp"
CL-USER 2 > *board*
#(NIL NIL NIL NIL NIL NIL NIL NIL NIL NIL NIL NIL NIL NIL NIL NIL NIL NIL NIL NIL NIL NIL NIL NIL NIL NIL NIL NIL NIL NIL NIL NIL NIL NIL NIL NIL NIL NIL NIL NIL NIL NIL NIL NIL NIL NIL NIL NIL NIL NIL NIL NIL NIL NIL NIL NIL NIL NIL NIL NIL NIL NIL NIL NIL NIL NIL NIL NIL NIL NIL NIL NIL NIL NIL NIL NIL NIL NIL NIL NIL NIL NIL NIL NIL NIL NIL NIL NIL NIL NIL NIL NIL NIL NIL NIL NIL NIL NIL NIL NIL NIL NIL NIL NIL NIL NIL NIL NIL NIL NIL NIL NIL NIL NIL NIL NIL NIL NIL NIL NIL)
CL-USER 3 > (initChess)
NIL
CL-USER 5 > (printBoard)
BR BN BB BQ BK BB BN BR
BP BP BP BP BP BP BP BP
. X . X . X . X
X . X . X . X .
. X . X . X . X
X . X . X . X .
WP WP WP WP WP WP WP WP
WR WN WB WQ WK WB WN WR
NIL
CL-USER 6 > (chess)
BR BN BB BQ BK BB BN BR
BP BP BP BP BP BP BP BP
. X . X . X . X
X . X . X . X .
. X . X . X . X
X . X . X . X .
WP WP WP WP WP WP WP WP
WR WN WB WQ WK WB WN WR
Enter your move (e.g., d2-d4) : d2-d4
BR BN BB BQ BK BB BN BR
BP BP BP BP BP BP BP BP
. X . X . X . X
X . X . X . X .
. X . WP . X . X
X . X . X . X .
WP WP WP X WP WP WP WP
WR WN WB WQ WK WB WN WR
D7 to D5 : 0
E7 to E6 : 0
F7 to F6 : -1
B8 to C6 : -2
D7 to D6 : -2
B8 to A6 : -2
B7 to B6 : -2
B7 to B5 : -2
C7 to C6 : -2
G7 to G6 : -2
A7 to A6 : -2
F7 to F5 : -2
G8 to F6 : -3
A7 to A5 : -3
H7 to H5 : -3
H7 to H6 : -3
E7 to E5 : -11
C7 to C5 : -13
G7 to G5 : -17
G8 to H6 : -45
Computer move : D7-D5
BR BN BB BQ BK BB BN BR
BP BP BP . BP BP BP BP
. X . X . X . X
X . X BP X . X .
. X . WP . X . X
X . X . X . X .
WP WP WP X WP WP WP WP
WR WN WB WQ WK WB WN WR
Enter your move (e.g., d2-d4) : c2-c4
BR BN BB BQ BK BB BN BR
BP BP BP . BP BP BP BP
. X . X . X . X
X . X BP X . X .
. X WP WP . X . X
X . X . X . X .
WP WP . X WP WP WP WP
WR WN WB WQ WK WB WN WR
D5 to C4 : 28
C8 to E6 : 1
G8 to F6 : 1
E7 to E6 : -10
F7 to F6 : -11
B8 to A6 : -12
A7 to A5 : -12
C7 to C6 : -12
G7 to G6 : -12
H7 to H5 : -12
F7 to F5 : -12
B8 to D7 : -12
B8 to C6 : -12
C8 to F5 : -12
C8 to G4 : -12
B7 to B6 : -13
C8 to D7 : -13
A7 to A6 : -13
H7 to H6 : -13
E7 to E5 : -20
D8 to D6 : -21
D8 to D7 : -22
C7 to C5 : -23
G7 to G5 : -26
B7 to B5 : -27
E8 to D7 : -32
G8 to H6 : -54
C8 to H3 : -54
Computer move : D5-C4
BR BN BB BQ BK BB BN BR
BP BP BP . BP BP BP BP
. X . X . X . X
X . X . X . X .
. X BP WP . X . X
X . X . X . X .
WP WP . X WP WP WP WP
WR WN WB WQ WK WB WN WR
Enter your move (e.g., d2-d4) : b2-b3
BR BN BB BQ BK BB BN BR
BP BP BP . BP BP BP BP
. X . X . X . X
X . X . X . X .
. X BP WP . X . X
X WP X . X . X .
WP X . X WP WP WP WP
WR WN WB WQ WK WB WN WR
C4 to B3 : 24
B8 to C6 : -3
E7 to E6 : -3
C8 to F5 : -4
C8 to G4 : -4
B8 to A6 : -4
B7 to B6 : -5
C7 to C6 : -5
G7 to G6 : -5
H7 to H6 : -5
C8 to D7 : -5
F7 to F6 : -5
F7 to F5 : -5
G8 to F6 : -5
C8 to E6 : -5
A7 to A5 : -6
B7 to B5 : -6
H7 to H5 : -6
A7 to A6 : -6
B8 to D7 : -6
C4 to C3 : -8
D8 to D5 : -14
E7 to E5 : -14
D8 to D6 : -14
D8 to D7 : -15
C7 to C5 : -15
G7 to G5 : -18
E8 to D7 : -25
C8 to H3 : -47
G8 to H6 : -47
D8 to D4 : -150
Computer move : C4-B3
BR BN BB BQ BK BB BN BR
BP BP BP . BP BP BP BP
. X . X . X . X
X . X . X . X .
. X . WP . X . X
X BP X . X . X .
WP X . X WP WP WP WP
WR WN WB WQ WK WB WN WR
Enter your move (e.g., d2-d4) : e2-e4
BR BN BB BQ BK BB BN BR
BP BP BP . BP BP BP BP
. X . X . X . X
X . X . X . X .
. X . WP WP X . X
X BP X . X . X .
WP X . X . WP WP WP
WR WN WB WQ WK WB WN WR
B3 to A2 : 33
B3 to B2 : 7
B8 to C6 : 0
G8 to F6 : 0
F7 to F6 : 0
E7 to E6 : -1
A7 to A5 : -1
B7 to B6 : -1
C7 to C6 : -1
G7 to G6 : -1
H7 to H6 : -1
C8 to D7 : -1
C8 to E6 : -2
A7 to A6 : -2
B8 to D7 : -3
E7 to E5 : -10
D8 to D6 : -10
D8 to D7 : -11
C7 to C5 : -13
F7 to F5 : -14
B7 to B5 : -16
G7 to G5 : -16
H7 to H5 : -16
E8 to D7 : -22
C8 to F5 : -41
C8 to H3 : -43
C8 to G4 : -44
B8 to A6 : -44
G8 to H6 : -44
D8 to D4 : -144
D8 to D5 : -184
Computer move : B3-A2
BR BN BB BQ BK BB BN BR
BP BP BP . BP BP BP BP
. X . X . X . X
X . X . X . X .
. X . WP WP X . X
X . X . X . X .
BP X . X . WP WP WP
WR WN WB WQ WK WB WN WR
Enter your move (e.g., d2-d4) : b1-c3
BR BN BB BQ BK BB BN BR
BP BP BP . BP BP BP BP
. X . X . X . X
X . X . X . X .
. X . WP WP X . X
X . WN . X . X .
BP X . X . WP WP WP
WR . WB WQ WK WB WN WR
B8 to C6 : 6
E7 to E6 : 3
D8 to D6 : 3
A7 to A5 : 3
B7 to B6 : 3
C7 to C6 : 3
F7 to F6 : 3
B8 to D7 : 3
G8 to F6 : 3
C8 to E6 : 3
D8 to D7 : 2
G7 to G6 : 2
A7 to A6 : 2
H7 to H6 : 2
C8 to D7 : 2
E7 to E5 : -5
F7 to F5 : -7
C7 to C5 : -8
H7 to H5 : -10
B7 to B5 : -11
G7 to G5 : -11
E8 to D7 : -16
B8 to A6 : -38
C8 to F5 : -38
C8 to G4 : -39
G8 to H6 : -39
C8 to H3 : -39
D8 to D4 : -131
D8 to D5 : -171
Computer move : B8-C6
BR X BB BQ BK BB BN BR
BP BP BP . BP BP BP BP
. X BN X . X . X
X . X . X . X .
. X . WP WP X . X
X . WN . X . X .
BP X . X . WP WP WP
WR . WB WQ WK WB WN WR
Enter your move (e.g., d2-d4) : g1-f3
BR X BB BQ BK BB BN BR
BP BP BP . BP BP BP BP
. X BN X . X . X
X . X . X . X .
. X . WP WP X . X
X . WN . X WN X .
BP X . X . WP WP WP
WR . WB WQ WK WB X WR
C8 to E6 : 4
G8 to F6 : 4
C8 to G4 : 4
E7 to E6 : 4
A7 to A5 : 3
H7 to H5 : 3
H7 to H6 : 3
D8 to D6 : 3
F7 to F6 : 3
A8 to B8 : 3
C6 to B4 : 3
C6 to B8 : 3
B7 to B6 : 2
G7 to G6 : 2
C8 to D7 : 2
D8 to D7 : 2
C6 to A5 : 2
C6 to D4 : -4
E7 to E5 : -5
F7 to F5 : -8
G7 to G5 : -10
A7 to A6 : -10
B7 to B5 : -11
E8 to D7 : -17
C8 to F5 : -37
G8 to H6 : -39
C8 to H3 : -39
C6 to E5 : -39
D8 to D4 : -131
D8 to D5 : -171
Computer move : C8-E6
BR X . BQ BK BB BN BR
BP BP BP . BP BP BP BP
. X BN X BB X . X
X . X . X . X .
. X . WP WP X . X
X . WN . X WN X .
BP X . X . WP WP WP
WR . WB WQ WK WB X WR
Enter your move (e.g., d2-d4) : f1-e2
BR X . BQ BK BB BN BR
BP BP BP . BP BP BP BP
. X BN X BB X . X
X . X . X . X .
. X . WP WP X . X
X . WN . X WN X .
BP X . X WB WP WP WP
WR . WB WQ WK . X WR
C6 to B4 : 17
F7 to F6 : 5
D8 to D6 : 4
G7 to G6 : 4
D8 to D7 : 4
A8 to B8 : 4
A8 to C8 : 4
C6 to A5 : 3
D8 to C8 : 3
G8 to F6 : 3
D8 to B8 : 3
E6 to D7 : 3
E6 to C8 : 3
A7 to A5 : 3
H7 to H5 : 3
B7 to B6 : 3
H7 to H6 : 3
E6 to G4 : 3
C6 to B8 : 2
C6 to D4 : -4
F7 to F5 : -7
B7 to B5 : -9
A7 to A6 : -9
G7 to G5 : -10
E8 to D7 : -15
E6 to H3 : -36
G8 to H6 : -37
E6 to B3 : -37
E6 to C4 : -38
C6 to E5 : -38
E6 to F5 : -39
E6 to D5 : -39
D8 to D4 : -131
D8 to D5 : -172
Computer move : C6-B4
BR X . BQ BK BB BN BR
BP BP BP . BP BP BP BP
. X . X BB X . X
X . X . X . X .
. BN . WP WP X . X
X . WN . X WN X .
BP X . X WB WP WP WP
WR . WB WQ WK . X WR
Enter your move (e.g., d2-d4) : e1-g1
BR X . BQ BK BB BN BR
BP BP BP . BP BP BP BP
. X . X BB X . X
X . X . X . X .
. BN . WP WP X . X
X . WN . X WN X .
BP X . X WB WP WP WP
WR . WB WQ X . WK WR
C7 to C6 : 19
F7 to F6 : 19
D8 to D6 : 18
G7 to G6 : 18
A7 to A6 : 18
B7 to B6 : 18
H7 to H6 : 18
A8 to B8 : 17
G8 to F6 : 17
D8 to B8 : 17
A7 to A5 : 17
H7 to H5 : 17
D8 to D7 : 17
A8 to C8 : 16
D8 to C8 : 16
F7 to F5 : 6
C7 to C5 : 6
B4 to C6 : 4
G7 to G5 : 4
E6 to G4 : 3
E6 to C8 : 3
B7 to B5 : 3
E6 to D7 : 2
E8 to D7 : -2
G8 to H6 : -23
E6 to C4 : -23
E6 to D5 : -24
E6 to B3 : -25
B4 to C2 : -31
B4 to D5 : -32
B4 to D3 : -38
B4 to A6 : -39
E6 to F5 : -39
E6 to H3 : -39
D8 to D4 : -117
D8 to D5 : -158
Computer move : C7-C6
BR X . BQ BK BB BN BR
BP BP X . BP BP BP BP
. X BP X BB X . X
X . X . X . X .
. BN . WP WP X . X
X . WN . X WN X .
BP X . X WB WP WP WP
WR . WB WQ X . WK WR
Enter your move (e.g., d2-d4) : c1-a3
BR X . BQ BK BB BN BR
BP BP X . BP BP BP BP
. X BP X BB X . X
X . X . X . X .
. BN . WP WP X . X
WB . WN . X WN X .
BP X . X WB WP WP WP
WR . X WQ X . WK WR
D8 to A5 : 24
D8 to B6 : 19
D8 to D6 : 18
F7 to F6 : -21
D8 to C7 : -22
G7 to G6 : -22
B7 to B6 : -22
A8 to C8 : -22
A8 to B8 : -22
D8 to D7 : -22
D8 to B8 : -22
G8 to F6 : -23
D8 to C8 : -23
G8 to H6 : -23
A7 to A5 : -23
H7 to H5 : -23
A7 to A6 : -23
H7 to H6 : -23
B4 to D5 : -31
B4 to C2 : -31
F7 to F5 : -33
C6 to C5 : -35
B7 to B5 : -36
E6 to G4 : -36
B4 to A6 : -37
B4 to D3 : -37
E6 to D7 : -37
E6 to C8 : -37
G7 to G5 : -37
E8 to D7 : -42
E6 to C4 : -64
E6 to B3 : -65
E6 to D5 : -66
E6 to F5 : -78
E6 to H3 : -79
D8 to D4 : -116
D8 to D5 : -199
Computer move : D8-A5
BR X . X BK BB BN BR
BP BP X . BP BP BP BP
. X BP X BB X . X
BQ . X . X . X .
. BN . WP WP X . X
WB . WN . X WN X .
BP X . X WB WP WP WP
WR . X WQ X . WK WR
Enter your move (e.g., d2-d4) :
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment