tomitankChess 6.0

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

Moderator: Ras

tomitank
Posts: 286
Joined: Sat Mar 04, 2017 12:24 pm
Location: Hungary

tomitankChess 6.0

Post by tomitank »

Here is the new version of my JavaScript chess engine!

I use this in my mobile chess apps, and since there is analysis, I wanted a better tool for this purpose. So a few months ago I spent some of my free time working on finding out what I could get out of my old code with the old HCE + small NN evaluation.
Here is a small list of the main elements:
  • use Math.clz32 when available
  • own native popcount64 wasm code when wasm is supported
  • improve move sorting (use see only inside the move picker)
  • use Typed Array rest of the code
  • improve see a little bit
  • more agressive nmp and razoring
  • fix memory overflow after "ucinewgame" command (don't realloc tt table)
  • fix "forfeits on time" in short time control (substract 50ms for lag)
  • revisited and refactored code (would be better rewrite from scratch..)
  • fix en-passant hash key update -> only when sq attacked by opponent
  • main eval is not changed (boring for me), still use HCE + small NN
  • 60% faster NPS, so tomitankChess play full of strength with same eval
  • bit better draw detection
  • Known issues:
  • Fifty-move repetition may incorrectly ignore mate positions
  • Stop and quit commands are ignored in the Node.js environment
  • Future improvements aka TODOs: better time management
  • Estimated strength: Senpai 1.0 (around 3000 elo)
URL:
https://github.com/tomitank/tomitankChess

More links:
Web: https://tanky.hu
Android app: https://play.google.com/store/apps/deta ... k.tanky.hu
iOS app: https://itunes.apple.com/us/app/sakk-in ... &ls=1&mt=8

I welcome any feedback.

Have fun with tomitankChess!

-Tamás
User avatar
Graham Banks
Posts: 45604
Joined: Sun Feb 26, 2006 10:52 am
Location: Auckland, NZ

Re: tomitankChess 6.0

Post by Graham Banks »

Will you be providing any exes?
gbanksnz at gmail.com
User avatar
Gabor Szots
Posts: 1537
Joined: Sat Jul 21, 2018 7:43 am
Location: Budapest, Hungary
Full name: Gabor Szots

Re: tomitankChess 6.0

Post by Gabor Szots »

Under Arena there is no PV displayed, only best move.
Gabor Szots
CCRL testing group
User avatar
Gabor Szots
Posts: 1537
Joined: Sat Jul 21, 2018 7:43 am
Location: Budapest, Hungary
Full name: Gabor Szots

Re: tomitankChess 6.0

Post by Gabor Szots »

Graham Banks wrote: Tue Mar 31, 2026 11:55 pm Will you be providing any exes?
The engine is javascript. There are no exes, you run it via node. Install node then run 'node tomitankchess.js'.
Gabor Szots
CCRL testing group
User avatar
Graham Banks
Posts: 45604
Joined: Sun Feb 26, 2006 10:52 am
Location: Auckland, NZ

Re: tomitankChess 6.0

Post by Graham Banks »

Gabor Szots wrote: Wed Apr 01, 2026 8:37 am
Graham Banks wrote: Tue Mar 31, 2026 11:55 pm Will you be providing any exes?
The engine is javascript. There are no exes, you run it via node. Install node then run 'node tomitankchess.js'.
Thanks. I forgot that. :)
gbanksnz at gmail.com
tomitank
Posts: 286
Joined: Sat Mar 04, 2017 12:24 pm
Location: Hungary

Re: tomitankChess 6.0

Post by tomitank »

Graham Banks wrote: Wed Apr 01, 2026 8:51 am
Gabor Szots wrote: Wed Apr 01, 2026 8:37 am
Graham Banks wrote: Tue Mar 31, 2026 11:55 pm Will you be providing any exes?
The engine is javascript. There are no exes, you run it via node. Install node then run 'node tomitankchess.js'.
Thanks. I forgot that. :)
Today i'll try to package it, but I don't know how well it will be cross-platform compatible.
Frank Quisinsky
Posts: 7336
Joined: Wed Nov 18, 2009 7:16 pm
Location: Gutweiler, Germany
Full name: Frank Quisinsky

Re: tomitankChess 6.0

Post by Frank Quisinsky »

Configuration with Shredder GUI:

Hint:
Lozza use node too.
But for the moment (reason unknown) Lozza 10 isn't available but version 9.

So I added for some months the link to node in my engine overview (end of the site):
https://nodejs.org/en

My Engine Overview:
https://www.amateurschach.de/main/_engines.htm

At first:
You have to install node
Current version is: v25.8.2

tomitank 6.0 "js" file ...
Can be found in GitHub, inside the source directory the programmer offer.

Shredder's *.eng file:

Code: Select all

[ENGINE]
Name=tomitank 6.0 JAVA
Author=Kuzmics Tamas
Filename=C:\Program Files\nodejs\node.exe
Parameter=C:\Chess\Shredder_12\Engines\tomitankChess\tomitankChess_60.js
In process exploerer you can see ...
node.exe ...

After all, very simple!

Best
Frank
tomitank
Posts: 286
Joined: Sat Mar 04, 2017 12:24 pm
Location: Hungary

Re: tomitankChess 6.0

Post by tomitank »

@everyone:

I added [exe] file for windows. Builded with Node v22.17.1

For other platforms or Node versions, need to install node.js:
Example for Arena GUI with node.js

Command line: direct acces to node.exe (C:\Program Files\nodejs\node.exe)
Command line parameters: direct acces to tomitankChess.js (C:\Program Files\nodejs\tomitankChessUCI.js)

https://github.com/tomitank/tomitankChe ... s/tag/v6.0
Frank Quisinsky
Posts: 7336
Joined: Wed Nov 18, 2009 7:16 pm
Location: Gutweiler, Germany
Full name: Frank Quisinsky

Re: tomitankChess 6.0

Post by Frank Quisinsky »

Same for Lozza ...

Lozza 9 "js" file ...
Can be found in GitHub, inside the source directory the programmer offer.

After you install node ...
See my message before ...

Shredder's *.eng file:

Code: Select all

[ENGINE]
Name=Lozza 9 JAVA
Author=Colin Jenkins
Filename=C:\Program Files\nodejs\node.exe
Parameter=C:\Chess\Shredder_12\Engines\Lozza\Lozza_9.js
Best
Frank
tomitank
Posts: 286
Joined: Sat Mar 04, 2017 12:24 pm
Location: Hungary

Re: tomitankChess 6.0

Post by tomitank »

Frank Quisinsky wrote: Wed Apr 01, 2026 11:58 am Same for Lozza ...

Lozza 9 "js" file ...
Can be found in GitHub, inside the source directory the programmer offer.

After you install node ...
See my message before ...

Shredder's *.eng file:

Code: Select all

[ENGINE]
Name=Lozza 9 JAVA
Author=Colin Jenkins
Filename=C:\Program Files\nodejs\node.exe
Parameter=C:\Chess\Shredder_12\Engines\Lozza\Lozza_9.js
[code]
[/quote]

Hi, now you can use my .exe file as well. :)
I hope it working well on your computer as well.