Indent with tabs
This commit is contained in:
1 parent
c0870b4831
commit
9ca9766799
1 file changed
+4
-4
@@ -194,8 +194,8 @@ function Board.new()
|
|||||||
|
|
||||||
-- rows
|
-- rows
|
||||||
for y,row in ipairs(rows) do
|
for y,row in ipairs(rows) do
|
||||||
local a = count(row, function (a) return a == BLUE end)
|
local a = count(row, BLUE)
|
||||||
local b = count(row, function (a) return a == YELLOW end)
|
local b = count(row, YELLOW)
|
||||||
if a ~= b then
|
if a ~= b then
|
||||||
if a == width/2 then self:fillRow(y, YELLOW) end
|
if a == width/2 then self:fillRow(y, YELLOW) end
|
||||||
if b == width/2 then self:fillRow(y, BLUE) end
|
if b == width/2 then self:fillRow(y, BLUE) end
|
||||||
@@ -204,8 +204,8 @@ function Board.new()
|
|||||||
|
|
||||||
-- columns
|
-- columns
|
||||||
for x,col in ipairs(cols) do
|
for x,col in ipairs(cols) do
|
||||||
local a = count(col, function (a) return a == BLUE end)
|
local a = count(col, BLUE)
|
||||||
local b = count(col, function (a) return a == YELLOW end)
|
local b = count(col, YELLOW)
|
||||||
if a ~= b then
|
if a ~= b then
|
||||||
if a == width/2 then self:fillCol(x, YELLOW) end
|
if a == width/2 then self:fillCol(x, YELLOW) end
|
||||||
if b == width/2 then self:fillCol(x, BLUE) end
|
if b == width/2 then self:fillCol(x, BLUE) end
|
||||||
|
|||||||
Reference in new issue
Block a user