SUNFISH - a new chess engine written in Python !

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.
thomasahle
Posts: 49
Joined: Thu Feb 27, 2014 7:19 pm

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

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:
Image
Image

Adam Hair
Posts: 3185
Joined: Wed May 06, 2009 8:31 pm
Location: Fuquay-Varina, North Carolina

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

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

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

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

User avatar
Sylwy
Posts: 3358
Joined: Fri Apr 21, 2006 2:19 pm
Location: IASI (Romania) - the historical capital of MOLDOVA

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

Post by Sylwy » Sat Mar 01, 2014 10:47 am

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: 3358
Joined: Fri Apr 21, 2006 2:19 pm
Location: IASI (Romania) - the historical capital of MOLDOVA

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

Post by Sylwy » Sat Mar 01, 2014 11:00 am

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: 3358
Joined: Fri Apr 21, 2006 2:19 pm
Location: IASI (Romania) - the historical capital of MOLDOVA

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

Post by Sylwy » Sat Mar 01, 2014 11:50 am

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: 3358
Joined: Fri Apr 21, 2006 2:19 pm
Location: IASI (Romania) - the historical capital of MOLDOVA

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

Post by Sylwy » Sat Mar 01, 2014 6:16 pm

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: 394
Joined: Sun Oct 29, 2006 3:38 am
Location: Schenectady, NY
Contact:

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

Post by Ron Murawski » Sat Mar 01, 2014 9:24 pm

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: 30733
Joined: Sun Feb 26, 2006 9:52 am
Location: Auckland, NZ

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

Post by Graham Banks » Sat Mar 01, 2014 10:14 pm

Sylwy wrote:By far the goodest chess engine written in Python ! A superb architecture !
How strong do you estimate Sunfish to be?
My email addresses:
gbanksnz at gmail.com
gbanksnz at yahoo.co.nz

User avatar
Sylwy
Posts: 3358
Joined: Fri Apr 21, 2006 2:19 pm
Location: IASI (Romania) - the historical capital of MOLDOVA

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

Post by Sylwy » Sun Mar 02, 2014 9:16 am

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

Post Reply