tomitankChess 2.0

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.
tomitank
Posts: 170
Joined: Sat Mar 04, 2017 11:24 am
Location: Hungary

tomitankChess 2.0

Post by tomitank » Wed Jul 11, 2018 5:38 pm

Hi all!


The new version of the world's strongest JavaScript engine is out.

Two versions available:
1. Blocker & Beyond attacks (better on my i3-6100 desktop pc)
2. Magic BitBoard attacks (better on my i3-4005U laptop)

I need the feedback so I can decide which one is the better. Thanks in advance!!


What has changed?
--------------------------------------------------------

1.) tomitankChess 2.0 is the first full BitBoard JavaScript chess engine on the World

- around 20 elo weaker, because in JavaScript everything has to be done twice.
JavaScript don't have 64 bits int: so the Magic BitBoard (and everything else) very slow

- Nonetheless, I tried to write a clean and understandable code. I hope, that this succeeded :)

- added check evasions code


2.) Evaluation

- added threats for all pieces

- added new passed pawn eval

- new King Safety (bigger and pawn-safe king ring)

- new non-linear and pawn-safe mobility (Same in mg and eg)


3.) Search

- better aspiration window

- a bit better delta pruning

- Don't give back the "upper bounds" moves

- pre-calculate and transmit the "gives check"


4.) Others

- added pawn hash (there is no elo gain yet, but it will be useful for a more complex pawn evaluation.)

- Typed Arrays Hash table for better memory usage

- added "Hash option" (default 32 min 1 max 256)

- added "eval" command (show the static evaluation)

- lots of little things

--------------------------------------------------------

All tuned with manually and only with ~2000-5000 games with very fast time control and fix depth (8).

I'm not a time-millionaire :(

--------------------------------------------------------

Estimated strength: ~100 elo stronger than previous version. (near to Fruit 2.1)

In C language, with 1 core, it would be ~2850 elo. On 4 core it would be around ~2950 elo. (in 64 bit version)

--------------------------------------------------------

Future improvements (in progress):
- better hash replacement scheme
- better time management
- tuning search parameters
- tuning eval parameters (maybe with Texel's Tuning Method)

--------------------------------------------------------

tomitankChess (with node.js) run in Arena, in WinBoard and in Cutehess as well.

I would like to thank Fabien for his help.

Have fun with tomitankChess!

Best Regards,

Tamás Kuzmics

Link: https://github.com/tomitank/tomitankChess/releases

SzG
Posts: 2463
Joined: Fri Mar 10, 2006 6:20 am
Location: Szentendre, Hungary
Full name: Gabor Szots

Re: tomitankChess 2.0

Post by SzG » Wed Jul 11, 2018 6:02 pm

Thanks Tamás!

At the moment I am watching TV (guess what!) so I think you'll have to wait until tomorrow for my speed tests.

Üdv: Gábor
Gabor Szots

CCRL testing group

tomitank
Posts: 170
Joined: Sat Mar 04, 2017 11:24 am
Location: Hungary

Re: tomitankChess 2.0

Post by tomitank » Wed Jul 11, 2018 6:07 pm

SzG wrote:
Wed Jul 11, 2018 6:02 pm
Thanks Tamás!

At the moment I am watching TV (guess what!) so I think you'll have to wait until tomorrow for my speed tests.

Üdv: Gábor
Hi Gábor!

I have time :)

-Tamás

User avatar
Graham Banks
Posts: 30781
Joined: Sun Feb 26, 2006 9:52 am
Location: Auckland, NZ

Re: tomitankChess 2.0

Post by Graham Banks » Wed Jul 11, 2018 8:40 pm

Thanks Tamas. Nice progress. :)
My email addresses:
gbanksnz at gmail.com
gbanksnz at yahoo.co.nz

tomitank
Posts: 170
Joined: Sat Mar 04, 2017 11:24 am
Location: Hungary

Re: tomitankChess 2.0

Post by tomitank » Wed Jul 11, 2018 9:07 pm

Graham Banks wrote:
Wed Jul 11, 2018 8:40 pm
Thanks Tamas. Nice progress. :)
Thank you Graham!

If you have time to deal with the above question, please let me know your results :)

And here I would like to thank you for your incredible work :!:

User avatar
CMCanavessi
Posts: 600
Joined: Thu Dec 28, 2017 3:06 pm
Location: Argentina

Re: tomitankChess 2.0

Post by CMCanavessi » Wed Jul 11, 2018 11:49 pm

Nice, thanx for the new version! I will include it in next season's CCLS if you don't mind. Should be a solid performer in the Entry League :mrgreen:
Follow my tournament and some Leela gauntlets live at http://twitch.tv/ccls

User avatar
mclane
Posts: 14967
Joined: Thu Mar 09, 2006 5:40 pm
Location: germany
Contact:

Re: tomitankChess 2.0

Post by mclane » Thu Jul 12, 2018 6:17 am

how to run a java engine in arena. is there an adapter or something alike ?
What seems like a fairy tale today may be reality tomorrow.
Here we have a fairy tale of the day after tomorrow....

SzG
Posts: 2463
Joined: Fri Mar 10, 2006 6:20 am
Location: Szentendre, Hungary
Full name: Gabor Szots

Re: tomitankChess 2.0

Post by SzG » Thu Jul 12, 2018 6:56 am

mclane wrote:
Thu Jul 12, 2018 6:17 am
how to run a java engine in arena. is there an adapter or something alike ?
This is not a java but a javascript engine (ask an expert for details). You can run a javascript engine using node, e.g. 'node tomitankChess.js'.
To run a java engine (usual exension 'jar') you need the java runtime environment. It is probably installed on your PC already. Java engines can be run via 'java enginename.jar'.

Please note that both node and java exist in 32 and 64 bit versions, download the corresponding to your OS.
Gabor Szots

CCRL testing group

tomitank
Posts: 170
Joined: Sat Mar 04, 2017 11:24 am
Location: Hungary

Re: tomitankChess 2.0

Post by tomitank » Thu Jul 12, 2018 6:57 am

mclane wrote:
Thu Jul 12, 2018 6:17 am
how to run a java engine in arena.
Hi!
This is JavaScript not Java :) JavaScript running direct in web browser. Here is a link: http://mobil.tanky.hu
JavaScript is ~5x slower than "C" language.
mclane wrote:
Thu Jul 12, 2018 6:17 am
is there an adapter or something alike ?
tomitankChess (with node.js) run in Arena, in WinBoard and in Cutechess as well.

Example for Arena GUI with node.js:
1.) Download Node.js link: https://nodejs.org/en/
2.) Open Arena GUI -> Engine Management
3.) Comand line: direct acces to node.exe (C:\Program Files\nodejs\node.exe)
4.) Command line parameters: direct acces to tomitankChess.js (C:\Program Files\nodejs\tomitankChessUCI.js)

Image:
Attachments
Arena.png
Arena.png (80.37 KiB) Viewed 215 times

SzG
Posts: 2463
Joined: Fri Mar 10, 2006 6:20 am
Location: Szentendre, Hungary
Full name: Gabor Szots

Re: tomitankChess 2.0

Post by SzG » Thu Jul 12, 2018 7:07 am

Unfortunately the engine has no analysis output so it is hard to determeine which version is faster. On my i5-4690K the magic version seems a bit faster but I'm not sure.

Do the two versions play differently (eval, search)?
Gabor Szots

CCRL testing group

Post Reply