fix rotation state names
This commit is contained in:
parent
f92c586cfc
commit
32d199933c
|
@ -20,8 +20,7 @@ async function handle(msg) {
|
|||
case 'suggest':
|
||||
{
|
||||
let [x, y, r, type] = suggest(msg.state.matrix, msg.state.hold, msg.state.next);
|
||||
console.log(x,y,r,type);
|
||||
r = ['north', 'right', 'south', 'west'][r];
|
||||
r = ['spawn', 'right', 'reverse', 'left'][r];
|
||||
type = 'IJLOSTZ'[type];
|
||||
return { x, y, r, type };
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue