From 19eb1c9c11dde34ecbc6ee0053aa86612ba72cfc Mon Sep 17 00:00:00 2001 From: Jules Laplace Date: Sun, 25 Feb 2018 16:44:25 +0100 Subject: build --- client/index.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'client') 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) -- cgit v1.2.3-70-g09d2