Jump to content

Chess player: Difference between revisions

Line 956:
 
==={{libheader|python-chess}}===
A very simple chess engine using [https://github.com/niklasf/python-chess python-chess]. The computer plays Black. The program is based onuses a two-ply search thatwhich computes material value for both sides and its own piece mobility after Black and White have made their moves.
 
The default Unicode board may look wonky and misaligned with certain terminal fonts. To use an ASCII board instead (like in the output shown below), replace "print(board.unicode())" with "print(board)".
<lang python># Simple Python chess engine
# Computer plays Black
Anonymous user
Cookies help us deliver our services. By using our services, you agree to our use of cookies.