only return one move
This commit is contained in:
parent
74028e8efe
commit
c6fd13f0a4
|
@ -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:
|
||||
|
|
Loading…
Reference in New Issue