python chess engines
DFS
nospam at dfs.com
Wed May 4 01:13:05 EDT 2016
> On 5/3/2016 8:00 PM, DFS wrote:
>> How far along are you in your engine development?
> I can display a text-based chess board on the console (looks better
> with a mono font).
>
> 8 BR BN BB BQ BK BB BN BR
>
> 7 BP BP BP BP BP BP BP BP
>
> 6 __ __ __ __ __ __ __ __
>
> 5 __ __ __ __ __ __ __ __
>
> 4 __ __ __ __ __ __ __ __
>
> 3 __ __ __ __ __ __ __ __
>
> 2 WP WP WP WP WP WP WP WP
>
> 1 WR WN WB WQ WK WB WN WR
>
> A B C D E F G H
>
>
> With feedback from this list, I had to break a lot of bad Java habits
> to make the code more Pythonic. Right now I'm going back and forth
> between writing documentation and unit tests. Once I finalized the
> code in its current state, I'll post it up on GitHub under the MIT
> license. Future updates will have a fuller console interface and
> moves for individual pieces implemented.
> Thank you,
>
> Chris R.
Wanted to start a new thread, rather than use the 'motivated' thread.
Can you play your game at the console?
The way I think about a chess engine is it doesn't even display a board.
It accepts a move as input, records the move, analyzes the positions
after the move, and returns the next move.
Here's the UCI protocol.
http://download.shredderchess.com/div/uci.zip
More information about the Python-list
mailing list