Chess player: Difference between revisions

Content added Content deleted
Line 983: Line 983:
else:
else:
print(board)
print(board)
pboard()


while not board.outcome():
while not board.outcome():
Line 1,031: Line 1,032:
{{Output}} (in ASCII)
{{Output}} (in ASCII)
<pre>$ python3 simplechess.py
<pre>$ python3 simplechess.py
r n b q k b n r
p p p p p p p p
. . . . . . . .
. . . . . . . .
. . . . . . . .
. . . . . . . .
P P P P P P P P
R N B Q K B N R
Your move? e2e4
Your move? e2e4
e7e6
e7e6