I have a simple web app chess game https://seftontycho.github.io/webchess/ with a computer opponent.
I have implemented a few known computer search algorithms.
However my implementation for Negamax with Alpha-Beta Pruning seems very slow.
It takes a few seconds to search only 7 moves ahead.
I feel like it should be faster and want to know how I could improve it.
Full code can be found at https://github.com/seftontycho/webchess/tree/master.
The relevant parts can be found in src/algorithm/