SUNFISH - a new chess engine written in Python !

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

Moderator: Ras

User avatar
Sylwy
Posts: 4823
Joined: Fri Apr 21, 2006 4:19 pm
Location: IAȘI - the historical capital of MOLDOVA
Full name: Silvian Rucsandescu

Re: THANK YOU MAESTRO RON ! !

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
SilvianR :lol:
User avatar
Graham Banks
Posts: 44141
Joined: Sun Feb 26, 2006 10:52 am
Location: Auckland, NZ

Re:A savage attacker !

Post by Graham Banks »

Sylwy wrote:
Graham Banks wrote:
Sylwy wrote:By far the goodest chess engine written in Python ! A superb architecture !
How strong do you estimate Sunfish to be?
Hello Graham !

It crushed all weak chess engine it played ! And know very well how to do that !. Now plays with some better engines.

Two tricks:

1.-if you want Sunfish to play with withe - edit test.py in the second line of "def xboard()" (the fen);
2.-if you have installed on your machine only Python 2.7/3.3 interpreter ( and not pypy) edit the first line in xboard .py (replace "pypy" with "python").

SilvianR :wink:

Just a mild sample of its savage play. A J_E_W_E_L IN PYTHON! Take a look please ,also, at the architecture of this chess engine !!!!

Image
Thanks Ruxy. :)
gbanksnz at gmail.com
User avatar
Sylwy
Posts: 4823
Joined: Fri Apr 21, 2006 4:19 pm
Location: IAȘI - the historical capital of MOLDOVA
Full name: Silvian Rucsandescu

Re: Now- a better support for the WB protocol !!!

Post by Sylwy »

Download again this masterpiece:
======================================
https://github.com/thomasahle/sunfish/a ... master.zip
======================================

Put in sunfish-master folder a Sunfish.bat file with the following structure:

=======
C:\Python33\python -u xboard.py
=======

and a logo with the name:

Sunfish.bmp

And your engine is able to play with both white/black colours, supports . bin book...........

Rests only the qsearch problem !!!

I will include (like a delicious bonus) this engine in my future Java +Python SECOND LEAGUE 2014 !!!!

MILLION THANKS, THOMAS !!!

SilvianR :wink:

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

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

Post by Ron Murawski »

Ajedrecista wrote:Hello Ruxy:
Sylwy wrote:
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
Please take a look here:

http://computer-chess.org/forum/index.p ... ad&id=2764
Update Information: February 27, 2014 wrote:Sunfish ??? (WB)
new engine by Thomas Dybdahl Ahle
engine discovered by the incomparable Mr Silvian 'Ruxy' Sylwyka
Python source, didactic engine
- source code only engine
- requires installion of a Python interpreter
- run 'test.py' for Winboard engine
- engine doesn't do minor promotion or draws of any kind
- engine has no assigned version number
http://github.com/thomasahle/sunfish/ (source code)
http://github.com/thomasahle/sunfish/archive/master.zip (direct link)
It is the CCW Update Information section of February, 27th. It lists Sunfish as a novelty without engine version. It also credits the discover to you! I guess that the info of the link you provided and the info of the link I post are not synchronised. I recommend you the following link:

http://computer-chess.org/forum/

Regards from Spain.

Ajedrecista.
The quote from the update post states that Sunfish was added to the source-code-only list
http://www.computer-chess.org/doku.php? ... _only_list

I suspect that installing a Python interpreter, editing source code, and running Python engines are beyond what most computer-chess people expect. If an engine contains a coherent package that simplifies usage, then I list it with the 'normal' engines at the top of the list.

If anyone uses this technique:
http://www.logix4u.net/component/conten ... hon-script
and can post the exe somewhere that is publicly available, then I will list it as a normal engine.

If the author cleans up the source code so it does not need editing, then I will probably list it with the normal engines. I would like to see an engine version number as well.
Jamal Bubker
Posts: 328
Joined: Mon May 24, 2010 4:32 pm

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

Post by Jamal Bubker »

Thank you Thomas for releasing your engine and thank you Ruxy for reporting this release !
User avatar
Sylwy
Posts: 4823
Joined: Fri Apr 21, 2006 4:19 pm
Location: IAȘI - the historical capital of MOLDOVA
Full name: Silvian Rucsandescu

Re: SUNFISH (2)-THOMAS ADDED QSEARCH & NULL-MOVE !!!!!

Post by Sylwy »

Hey men !

Sunfish rules ! Thomas just added qsearch & null-move to this beautiful chess engine !

https://github.com/thomasahle/sunfish/a ... master.zip

A very short test shows me a fantastic attacking entity ! Versus Mr.James Swaffort last creation !

Image

Try it !
A jewel in Python !!!

Have a nice day & night ( and.....don't forget Ukraine ) !
SilvianR :wink:
User avatar
Sylwy
Posts: 4823
Joined: Fri Apr 21, 2006 4:19 pm
Location: IAȘI - the historical capital of MOLDOVA
Full name: Silvian Rucsandescu

Re: Installing Sunfish (2) in Arena GUI (MANUAL -:)))

Post by Sylwy »

1.-download Thomas original archive:

https://github.com/thomasahle/sunfish/a ... master.zip

2.-unzip somewhere on your machine;

3.- add the following two files (Sunfish2.bat and Sunfish2.bmp):

http://bayfiles.net/file/18qul/GdgR8g/for_Arena_GUI.zip

4.-download & install (if you haven't it yet) Python 3.3 interpreter (let the default installation path C:\Python33, or change the path in Sunfish2.bat file) from here:

http://www.python.org/ftp/python/3.3.4/python-3.3.4.msi

5.-on Arena GUI - install Sunfish2.bat like Wb engine.

Have fun !
SilvianR :wink:
User avatar
Sylwy
Posts: 4823
Joined: Fri Apr 21, 2006 4:19 pm
Location: IAȘI - the historical capital of MOLDOVA
Full name: Silvian Rucsandescu

Re: Nice games of Sunfish (2)

Post by Sylwy »

Hi folks !

Just finished a short test :

Sunfish 2 - Pyotr Amateur 0.6 (Java): +4=2-0

Below is a superb miniature of Sunfish 2:



And a capture with the 6-th game:

Image

Regards,
:lol: SilvianR :wink:
User avatar
Sylwy
Posts: 4823
Joined: Fri Apr 21, 2006 4:19 pm
Location: IAȘI - the historical capital of MOLDOVA
Full name: Silvian Rucsandescu

Re: Increasing the performances !

Post by Sylwy »

Using pypy interpreter you can increase the speed /performances of this wonderful Python engine.
Download pypy 3.2.1 from here:

https://bitbucket.org/pypy/pypy/downloa ... -win32.zip

The Sunfish2.bat (using pypy) file (for Martin's Arena GUI) has -now - the structure:

@@@@@@@@@@@@@@@@@@@@@@@@@

C:\pypy3-2.1-beta1-win32\pypy.exe xboard.py

%%%%%%%%%%%%%%%%%%%%%%%

:lol: A good boost of Herr Sunfish ! :lol:

SilvianR :wink:
ZirconiumX
Posts: 1351
Joined: Sun Jul 17, 2011 11:14 am
Full name: Hannah Ravensloft

Re: Increasing the performances !

Post by ZirconiumX »

I have to agree with you Ruxy, the engine can be very aggressive. Mind you, so can others.

Poor Sunfish was helpless against Fairy-Max...



Note: this is a version where I have added a few patches to help it along, like LMR (questionably sound at the moment) and making the TT move before any others. You can see my patches at https://github.com/ZirconiumX/sunfish (shameless plug).

Matthew:out
tu ne cede malis, sed contra audentior ito