tomitankChess 7.0

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

Moderator: Ras

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

tomitankChess 7.0

Post by tomitank »

Here is the new version of my JavaScript chess engine!

As I mentioned earlier, I use it in my mobile chess apps, and since they include analysis, I wanted a stronger engine for that purpose.

So I made a few more meaningful improvements. Hopefully, it will be stronger not only in self-play but also in general.

Please read the README for instructions on how to use it.
  • Fastest version: Latest Node.js + tomitankChess.js
  • Slightly slower on Windows: tomitankChess_70_x64_node24.exe
Main changes:
  • Focused on reducing memory lookups (arrays/functions), which are costly in JavaScript
  • Replaced Rank/File/Mirror arrays with bit manipulation
  • Switched to direct indexing instead of function calls on BitBoard arrays
  • Bit faster NN index (~2% NPS gain). In this workload, optimized JS performs similarly to WASM SIMD, making SIMD unnecessary complexity
  • TT optimizations: improved replacement scheme, faster access, fewer lookups
  • Added a custom symmetry-safe evaluation cache (~5% NPS gain even with the main TT enabled)
  • Optimized pawn eval, capture eval, and NN updates
  • Added plain magic bitboards (~9% NPS gain)
  • Minor time-management improvements
  • Overall NPS gain: ~20% (compared to 6.0)
  • Same eval (HCE + small NN), retrained with a better trainer
  • Estimated strength: around 3050 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
towforce
Posts: 13179
Joined: Thu Mar 09, 2006 12:57 am
Location: Birmingham UK
Full name: Graham Laight

Re: tomitankChess 7.0

Post by towforce »

Just played it in the browser: great little JavaScript chess game! :D
Human chess is partly about tactics and strategy, but mostly about memory
tomitank
Posts: 290
Joined: Sat Mar 04, 2017 12:24 pm
Location: Hungary

Re: tomitankChess 7.0

Post by tomitank »

If anyone has downloaded it by now, please delete it and download it again, because an important bug had to be fixed.
I have not updated the version number for this reason.
Thanks,
-Tamás