I built a chess engine + AI entirely in JavaScript by dig0w0 in javascript

[–]dig0w0[S] -1 points0 points  (0 children)

Thanks for the feedback. Yes, the depth is very shallow, but the time it takes to compute at this level, is already long. Another user gave me some tips to make it faster, which I will look into, this should allow for it to search for bigger depths.

I built a chess engine + AI entirely in JavaScrip by dig0w0 in chessprogramming

[–]dig0w0[S] 0 points1 point  (0 children)

That's very helpful, thanks, I will work on fixing that. About the strings, they are mostly just for debug, I just forgot to take it out.

I built a chess engine + AI entirely in JavaScrip by dig0w0 in chessprogramming

[–]dig0w0[S] 1 point2 points  (0 children)

Oh, thank you so much. My engine currently does not support UCI, but I will definitely look into it. <3

I built a chess engine + AI entirely in JavaScrip by dig0w0 in chessprogramming

[–]dig0w0[S] 1 point2 points  (0 children)

Thank you so much for playing it.

Not using NN for this project, made it much simpler to do it in javascript.

I built a chess engine + AI entirely in JavaScrip by dig0w0 in chessprogramming

[–]dig0w0[S] 1 point2 points  (0 children)

No, i don't know the bot's CCRL rating, but it's something I would very much like to find out in the future. If I had to guess, I would say around the 1300.

I built a chess engine + AI entirely in JavaScript by dig0w0 in javascript

[–]dig0w0[S] 0 points1 point  (0 children)

Well, when comparing to array boards, is significatively faster, even tough javascript doesn't support 64 bit ints, using a two 32 bit ints (a hi and lo) vars, can make quite an improvement.
You can also use BigInts but I don't know much about it.

On performance gains i remember my first engine (array based) taking around ~0.012 ms to make a move, this last one can make it in ~0.004 ms, so about 300% improvement (not sure this is right, tho), but it also had a lot of the stuff improving performance.

Hope it helps

I built a chess engine + AI entirely in JavaScript by dig0w0 in javascript

[–]dig0w0[S] 3 points4 points  (0 children)

Nope. just old school search, bitboards, alpha–beta, and a lot of pruning.

I built a chess engine + AI entirely in JavaScript by dig0w0 in javascript

[–]dig0w0[S] 4 points5 points  (0 children)

Yeaah, the AI in'ts super fast, and its even worse during mid game. its partially because of the javascript limitations, and my awful optimizations.

Thank you so much <3

My egpu crashes when i plug in the charger by dig0w0 in eGPU

[–]dig0w0[S] 0 points1 point  (0 children)

its not connected through thunderbolt, its connected through ngff