only return one move

This commit is contained in:
milo 2024-03-06 00:32:27 -05:00
parent 74028e8efe
commit c6fd13f0a4
1 changed files with 1 additions and 1 deletions

View File

@ -22,7 +22,7 @@ async function handle(msg) {
let res = suggest(msg.state.matrix, msg.state.hold, msg.state.next); let res = suggest(msg.state.matrix, msg.state.hold, msg.state.next);
let [x, y, r, type] = res.split(','); let [x, y, r, type] = res.split(',');
x = +x, y = +y; x = +x, y = +y;
return { moves: [{ x, y, r, type }] }; return { x, y, r, type };
} }
default: default: