X-Git-Url: https://git.auder.net/?p=vchess.git;a=blobdiff_plain;f=client%2Fsrc%2FplayCompMove.js;h=b93a8d1eefa323e5a35eba80213b47e43ada91c8;hp=062eae35757a5e3b4cbd422763edace3e0f44f44;hb=4486a21e09c50f65da5d4c3648430cea1b19a0cc;hpb=f7121527579a543e01449e752d630ecf2452ec80 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])