summaryrefslogtreecommitdiff
path: root/client/index.js
diff options
context:
space:
mode:
authorJules Laplace <julescarbon@gmail.com>2018-02-25 16:44:25 +0100
committerJules Laplace <julescarbon@gmail.com>2018-02-25 16:44:25 +0100
commit19eb1c9c11dde34ecbc6ee0053aa86612ba72cfc (patch)
treebb2a35d7fcf5a6307133e2bff2c68f92c3c6ae46 /client/index.js
parenta06393ed3864dd29626c741ada05df5380b9dfb8 (diff)
build
Diffstat (limited to 'client/index.js')
-rw-r--r--client/index.js6
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)