Discussion of anything and everything relating to chess playing software and machines.
Moderators: hgm, Harvey Williamson, bob
Forum rules
This textbox is used to restore diagrams posted with the [d] tag before the upgrade.
-
zullil
- Posts: 4878
- Joined: Mon Jan 08, 2007 11:31 pm
- Location: PA USA
Post
by zullil » Thu Feb 27, 2014 8:36 pm
Sylwy wrote:Hello CCC folks !
Like I promised !
Author: Mr.Thomas Dybdahl Ahle/Denmark.
Only 111 lines of code ! :
Looks interesting. Has a hash table, but no qsearch.
-
Bram Visser
- Posts: 52
- Joined: Wed Oct 19, 2011 1:37 pm
- Location: NL
Post
by Bram Visser » Fri Feb 28, 2014 8:39 am
Very nice, thanks for engine and the link

.
-
Norbert Raimund Leisner
- Posts: 1445
- Joined: Tue May 20, 2008 2:57 pm
- Location: Augsburg - Germany
Post
by Norbert Raimund Leisner » Fri Feb 28, 2014 11:21 am
Hello Silvian,
I added Chess Mastah , Smashpy and Python Chess Library to
"Native Engine List" of CCWiki.
Sunfish
I have installed Python 2.7.6 ttp://www.python.org/download/releases/2.7.6/ and PyPy 2.2.1 win32 http://pypy.org/download.html on my Intel Core 2 Duo E6600 with Windows XP SP3-32 bit OS.
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.
Best wishes,
Norbert :
-
Sylwy
- Posts: 3358
- Joined: Fri Apr 21, 2006 2:19 pm
- Location: IASI (Romania) - the historical capital of MOLDOVA
Post
by Sylwy » Fri Feb 28, 2014 11:54 am
-
thomasahle
- Posts: 49
- Joined: Thu Feb 27, 2014 7:19 pm
Post
by thomasahle » Fri Feb 28, 2014 9:34 pm
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.
I also made some graphics inspired by Ruxy:

-
Adam Hair
- Posts: 3185
- Joined: Wed May 06, 2009 8:31 pm
- Location: Fuquay-Varina, North Carolina
Post
by Adam Hair » Fri Feb 28, 2014 10:35 pm
Welcome to CCC, Thomas! And thanks for sharing your engine with us. I will be trying out Sunfish very soon.
-
Norbert Raimund Leisner
- Posts: 1445
- Joined: Tue May 20, 2008 2:57 pm
- Location: Augsburg - Germany
Post
by Norbert Raimund Leisner » Sat Mar 01, 2014 8:17 am
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++
Best wishes,
Norbert