X-Git-Url: https://git.auder.net/?a=blobdiff_plain;f=client%2Fsrc%2FplayCompMove.js;h=b93a8d1eefa323e5a35eba80213b47e43ada91c8;hb=4486a21e09c50f65da5d4c3648430cea1b19a0cc;hp=062eae35757a5e3b4cbd422763edace3e0f44f44;hpb=1c9f093dad69e4c7b6d2b42cb5e0bd3bc7224ec9;p=vchess.git diff --git a/client/src/playCompMove.js b/client/src/playCompMove.js index 062eae35..b93a8d1e 100644 --- a/client/src/playCompMove.js +++ b/client/src/playCompMove.js @@ -1,8 +1,4 @@ -// TODO: https://github.com/webpack-contrib/worker-loader -// https://stackoverflow.com/questions/48713072/how-to-get-js-function-into-webworker-via-importscripts -// For asynchronous computer move search - -//self.addEventListener('message', (e) => +// Logic to play a computer move in a web worker onmessage = async function(e) { switch (e.data[0])