Ivan Asmer 5 年之前
父节点
当前提交
d4c9201a8d
共有 1 个文件被更改,包括 2 次插入2 次删除
  1. 2 2
      index.js

+ 2 - 2
index.js

@@ -28,9 +28,9 @@ const dice = () => Math.ceil(Math.random()*6)
 
 const startBoard = () => [
     {color: 'white', count: 15},
-    , , , , , , , , , , ,
+    { count: 0}, { count: 0}, { count: 0}, { count: 0}, { count: 0}, { count: 0}, { count: 0}, { count: 0}, { count: 0}, { count: 0}, { count: 0},
     {color: 'black', count: 15},
-    , , , , , , , , , , ,
+    { count: 0}, { count: 0}, { count: 0}, { count: 0}, { count: 0}, { count: 0}, { count: 0}, { count: 0}, { count: 0}, { count: 0}, { count: 0},
 ]
 
 io.on('connection', socket => {