SUNFISH - a new chess engine written in Python !

Discussion of anything and everything relating to chess playing software and machines.

Moderators: hgm, Rebel, chrisw

thomasahle
Posts: 94
Joined: Thu Feb 27, 2014 8:19 pm

Re: SUNFISH - a new chess engine written in Python !

Post by thomasahle »

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:
Image
Image
Adam Hair
Posts: 3226
Joined: Wed May 06, 2009 10:31 pm
Location: Fuquay-Varina, North Carolina

Re: SUNFISH - a new chess engine written in Python !

Post by Adam Hair »

Welcome to CCC, Thomas! And thanks for sharing your engine with us. I will be trying out Sunfish very soon.
Norbert Raimund Leisner
Posts: 1643
Joined: Tue May 20, 2008 4:57 pm
Location: Augsburg - Germany

Re: SUNFISH - a new chess engine written in Python !

Post by Norbert Raimund Leisner »

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
User avatar
Sylwy
Posts: 4468
Joined: Fri Apr 21, 2006 4:19 pm
Location: IASI - the historical capital of MOLDOVA
Full name: SilvianR

Re: HAVING A WORKING SUNFISH ON WINBOARD GUI !!!

Post by Sylwy »

Hi all !

1.-download the new archive (28-02-2014);
2.-replace the test.py from this archive with the old test.py file (it has xboard enabled). If you don't have the old test.py edit the new like in the below image !
3.-under Winboard GUI use the following .ini lines:

"C:\Python33\python -u C:\WbEngines\sunfish\test.py" /fd="C:\WbEngines\sunfish"

the same for the second directory

You can replace with your locations of Python interpreter and test.py file !

THANK YOU THOMAS FOR THIS NEW ENGINE WRITTEN IN PYTHON !!! :lol:

Image

A nice Saturday for everybody here !

SilvianR :wink:
User avatar
Sylwy
Posts: 4468
Joined: Fri Apr 21, 2006 4:19 pm
Location: IASI - the historical capital of MOLDOVA
Full name: SilvianR

Re: HAVING A WORKING SUNFISH ON WINBOARD GUI !!!

Post by Sylwy »

Some minutes ago a Python match : Lovez vs. Sunfish (add please Shatranj 1.17 of Mr. Sam Tanous and my two other ones :lol:). A nice collection !!!


SilvianR :lol:


Image
User avatar
Sylwy
Posts: 4468
Joined: Fri Apr 21, 2006 4:19 pm
Location: IASI - the historical capital of MOLDOVA
Full name: SilvianR

Re: SUNFISH - a new chess engine written in Python !

Post by Sylwy »

Hello Norbert !

See my below post. Sunfish works cool in Winboard/Arena GUIs !

http://talkchess.com/forum/viewtopic.ph ... 07&t=51430

SilvianR :wink:
User avatar
Sylwy
Posts: 4468
Joined: Fri Apr 21, 2006 4:19 pm
Location: IASI - the historical capital of MOLDOVA
Full name: SilvianR

Re: A HARD VICTORY OF MR.RUXY VERSUS SUNFISH !

Post by Sylwy »

By far the goodest chess engine written in Python ! A superb architecture !

SilvianR :wink:

NR: ComputerChessWiki - please post this superb chess engine in EnginesList ! THANK YOU !


Image
Ron Murawski
Posts: 397
Joined: Sun Oct 29, 2006 4:38 am
Location: Schenectady, NY

Re: A HARD VICTORY OF MR.RUXY VERSUS SUNFISH !

Post by Ron Murawski »

Sylwy wrote:By far the goodest chess engine written in Python ! A superb architecture !

SilvianR :wink:

NR: ComputerChessWiki - please post this superb chess engine in EnginesList ! THANK YOU !
Hi Silvian,

Sunfish was added to the Chess Engine List on Feb 27.

Ron
User avatar
Graham Banks
Posts: 41451
Joined: Sun Feb 26, 2006 10:52 am
Location: Auckland, NZ

Re: A HARD VICTORY OF MR.RUXY VERSUS SUNFISH !

Post by Graham Banks »

Sylwy wrote:By far the goodest chess engine written in Python ! A superb architecture !
How strong do you estimate Sunfish to be?
gbanksnz at gmail.com
User avatar
Sylwy
Posts: 4468
Joined: Fri Apr 21, 2006 4:19 pm
Location: IASI - the historical capital of MOLDOVA
Full name: SilvianR

Re:?????????????????............????????????????

Post by Sylwy »

Ron Murawski wrote:
Sylwy wrote:By far the goodest chess engine written in Python ! A superb architecture !

SilvianR :wink:

NR: ComputerChessWiki - please post this superb chess engine in EnginesList ! THANK YOU !
Hi Silvian,

Sunfish was added to the Chess Engine List on Feb 27.

Ron
Hello Maestro Ron !

The 2-nd of March 2014. Still nothing. A such beautiful engine ! Why ???

SilvianR :wink:

Image