The weekend is imminent. Some computer chess material written in Python. All originals. The authors even don't know about WB or UCI communication protocols. They are all native chess apps. Play (or autoplay for amusement) in console-mode. For example Mastah 0.5 is super !!! You need a Pyton interpreter (2.7/3.3) installed on your machine:
With Notepad++http://notepad-plus-plus.org/ a .bat -file like
python -u test.py can be created - but in two 5 min-games under Arena-GUI Sunfish executes only moves with the black pieces and after 1.e4 Nc6 2.d4 e5 4.Nf3 Nf6 4.Nc3 the program forfeits because of time exceeding (no further moves were made)
It would be surely a good idea to publish a step-by-step manual for running Sunfish into external graphical interfaces.
Norbert Raimund Leisner wrote:
1.-I added Chess Mastah , Smashpy and Python Chess Library to
"Native Engine List" of CCWiki.
Sunfish
2.-It would be surely a good idea to publish a step-by-step manual for running Sunfish into external graphical interfaces.
Hello Norbert !
1.-THANK YOU !
2.-I'll try this weekend to make one ( but in my poor semi-English ) !
Best to you !
SilvianR
PS: Sunfish works super in console mode ! No Winboard GUI or Arena GUI. "Somebody" just wait for....to accuse me for new voltages in Winboard/Arena relations (maybe a war..... ) !
Hey guys, thanks for bringing this up. I pushed a new module to github, which adds better cecp/xboard/wb support. It also fixes the hang Nobert was talking about.
I would love to add qsearch to sunfish. Right now horizontal effects make it blunder pretty badly in some positions. I'm not sure what the simplest way to do it would be though.
Yes, you can use Sunfish to play a console-based match with a double-mouse click on sunfish.py
your move: e2e4
searched 67590 nodes depth 6 score -107
my move: b6c6
your move: d2d4
searched 26472 nodes depth 5 score 160
my move: e7e5
your move: d4d5
searched 46168 nodes depth 5 score 101
my move: c6e7
etc.
But playing under WinBoard-protocol with a bat.-file python -u test.py
or python -u test.py -xboard failed with Arena http://www.playwitharena.com/ failed because no moves were made
(in contrast to yesterday) by the program
Be aware that you can run another Python Engine "Shatranj" https://code.google.com/p/shatranjpy/ with a .bat-file like python -u shatranj117.py -xboard to run normally into the same interface (with Python 2.7.6) and an editor like Notepad++