From c6fd13f0a4b176c5fd84bc8a1c9781d982da4018 Mon Sep 17 00:00:00 2001 From: milo Date: Wed, 6 Mar 2024 00:32:27 -0500 Subject: [PATCH] only return one move --- fish-webworker/src/worker.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fish-webworker/src/worker.js b/fish-webworker/src/worker.js index 7ec8729..a224371 100644 --- a/fish-webworker/src/worker.js +++ b/fish-webworker/src/worker.js @@ -22,7 +22,7 @@ async function handle(msg) { let res = suggest(msg.state.matrix, msg.state.hold, msg.state.next); let [x, y, r, type] = res.split(','); x = +x, y = +y; - return { moves: [{ x, y, r, type }] }; + return { x, y, r, type }; } default: