diff options
| author | Jules Laplace <julescarbon@gmail.com> | 2018-02-25 16:44:25 +0100 |
|---|---|---|
| committer | Jules Laplace <julescarbon@gmail.com> | 2018-02-25 16:44:25 +0100 |
| commit | 19eb1c9c11dde34ecbc6ee0053aa86612ba72cfc (patch) | |
| tree | bb2a35d7fcf5a6307133e2bff2c68f92c3c6ae46 /client/index.js | |
| parent | a06393ed3864dd29626c741ada05df5380b9dfb8 (diff) | |
build
Diffstat (limited to 'client/index.js')
| -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) |
