Indent with tabs

This commit is contained in:
Simon Cambier 2022-05-28 12:34:08 +02:00
parent c0870b4831
commit 9ca9766799

View File

@ -194,8 +194,8 @@ function Board.new()
-- rows
for y,row in ipairs(rows) do
local a = count(row, function (a) return a == BLUE end)
local b = count(row, function (a) return a == YELLOW end)
local a = count(row, BLUE)
local b = count(row, YELLOW)
if a ~= b then
if a == width/2 then self:fillRow(y, YELLOW) end
if b == width/2 then self:fillRow(y, BLUE) end
@ -204,8 +204,8 @@ function Board.new()
-- columns
for x,col in ipairs(cols) do
local a = count(col, function (a) return a == BLUE end)
local b = count(col, function (a) return a == YELLOW end)
local a = count(col, BLUE)
local b = count(col, YELLOW)
if a ~= b then
if a == width/2 then self:fillCol(x, YELLOW) end
if b == width/2 then self:fillCol(x, BLUE) end