Python Chess - A Short Introduction

Discussion of chess software programming and technical issues.

Moderators: hgm, Rebel, chrisw

User avatar
Steve Maughan
Posts: 1221
Joined: Wed Mar 08, 2006 8:28 pm
Location: Florida, USA

Python Chess - A Short Introduction

Post by Steve Maughan »

I've just published a guest post about Python Chess by its author Niklas Fiekas. I'm really excited about Python Chess and how it can help developers crunch through chess data.

Find out more here:

http://www.chessprogramming.net/python-chess/


P.S. I changed ISP and took the opportunity to give the site's look and feel a quick refresh. ChessProgramming.net is now using Disqus for comments. Let me know what you think!
http://www.chessprogramming.net - Maverick Chess Engine
jordanbray
Posts: 52
Joined: Mon Aug 11, 2014 3:01 am

Re: Python Chess - A Short Introduction

Post by jordanbray »

Looks great. The python code on the homepage is formatted incorrectly (for me - no tabs).

Is this open source?
User avatar
Steve Maughan
Posts: 1221
Joined: Wed Mar 08, 2006 8:28 pm
Location: Florida, USA

Re: Python Chess - A Short Introduction

Post by Steve Maughan »

Hi Jordan,

I'll take a look at the tab issue - thanks!

Yes - it's open source and on GitHib

- Steve
http://www.chessprogramming.net - Maverick Chess Engine
Gerd Isenberg
Posts: 2250
Joined: Wed Mar 08, 2006 8:47 pm
Location: Hattingen, Germany

Re: Python Chess - A Short Introduction

Post by Gerd Isenberg »

Steve Maughan wrote:I've just published a guest post about Python Chess by its author Niklas Fiekas. I'm really excited about Python Chess and how it can help developers crunch through chess data.

Find out more here:

http://www.chessprogramming.net/python-chess/
Hi Steve,

What a coincidence, I just wrote a small cpw page on python-chess today as well ;-)
https://chessprogramming.wikispaces.com/python-chess

Cheers,
Gerd
mvk
Posts: 589
Joined: Tue Jun 04, 2013 10:15 pm

Re: Python Chess - A Short Introduction

Post by mvk »

Steve Maughan wrote:I've just published a guest post about Python Chess by its author Niklas Fiekas. I'm really excited about Python Chess and how it can help developers crunch through chess data.
This looks pretty nice and complete!!

I have in the past month revised my own Python chess module, and put it in github last week. It has a different purpose: it is a Python wrapper around a C move generator, and nothing more than that. It talks FEN and algebraic (san, long, and uci). I needed it to get relatively fast move generation available in Python for scanning for transpositions in large opening books.

The work is still very rough and I consider it 'alpha status' now. But it is already operational on one of my systems. It passes perft stress tests.

As my kit is so tiny and single-purpose, it might be interesting to merge it into python-chess and have everything in one place. (If the author thinks it is ok to add a C extension).

https://github.com/kervinck/chessmoves/

Works on Mac, FreeBSD and Linux. I see no fundamental reason why it wouldn't work on Windows, except that I haven't tested it yet. I plan to support it on all platforms. License will be open source (3-clause BSD).
[Account deleted]
niklasf
Posts: 42
Joined: Sat May 16, 2015 11:41 pm

Re: Python Chess - A Short Introduction

Post by niklasf »

Hi Marcel,

apologies for the delayed response.

For the moment the my policy is to stay pure Python. The API is still not particularly stable and I want to be able to easily move stuff around, for example to implement Chess960 support.

- Niklas