diff options
Diffstat (limited to 'client')
| -rw-r--r-- | client/index.js | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/client/index.js b/client/index.js index b9b7a03..3a643a5 100644 --- a/client/index.js +++ b/client/index.js @@ -62,12 +62,12 @@ const gliderShape = [ [0,0,1,0,0], [0,0,0,0,0], ] -const gliderShapeFlip = gliderShape.map(a => a.reverse()) +const gliderShapeFlip = gliderShape.map(a => a.slice(0).reverse()) const gliderShapes = [ gliderShape, gliderShapeFlip, - gliderShape.reverse(), - gliderShapeFlip.reverse(), + gliderShape.slice(0).reverse(), + gliderShapeFlip.slice(0).reverse(), ] function glider() { const x = Math.floor(Math.random() * ws) |
