deep-blue-talks

bestow speech unto chess engines


Keywords
deep, blue, talks, chess, pedro, cattori
License
MIT
Install
pip install deep-blue-talks==0.2.2

Documentation

6.xxx Project

If Deep Blue could talk

Latest Version Downloads Supported Python Version License Development Status

With a GM mind provided by Stockfish.

Built with the chess python package.

Installation

$ pip install deep-blue-talks

Run

$ deep-blue-talks

Output

If you enter

> board

then you should see

8 ♜ ♞ ♝ ♛ ♚ ♝ ♞ ♜ 
7 ♟ ♟ ♟ ♟ ♟ ♟ ♟ ♟ 
6 · · · · · · · · 
5 · · · · · · · · 
4 · · · · · · · · 
3 · · · · · · · · 
2 ♙ ♙ ♙ ♙ ♙ ♙ ♙ ♙ 
1 ♖ ♘ ♗ ♕ ♔ ♗ ♘ ♖ 
  a b c d e f g h
>

Nota Bene: Depending on your terminal, the colors of the pieces may be inverted. To correct this, toggle the boolean value of the inverted setting inside /usr/local/bin/deep-blue-talks with vim (or any lesser text editor of your choosing). This should be fixed for the 0.3 release.

Play

Enter moves in SAN

eg. The Scholar's Mate

> move e4
> move e5
> move Qh5
> move Nc6
> move Bc4
> move Nf6
> move Qxf7

Commands

  • help: see available commands
  • resign: ends the game
  • fen: get or set FEN
  • move: move a piece on the board using SAN
  • ask: ask about a particular move
  • advice: get advice for what to play next
  • board: display the chess board
  • engine: configure UCI options for backend chess engine

Example Usage

Interesting FEN

$ ./play
$ fen "r1b1kb1r/ppq2ppp/2n2n2/1Bpp4/3pP3/2N2N1P/PPP2PP1/R1BQR1K1 w kq - 0 9"
$ board
$ engine MultiPv 5
$ advice
$ ask Nh4