made our debug randomizer not bad

This commit is contained in:
Ishaan Bhardwaj 2020-10-13 22:10:27 -04:00
parent 436e4ac861
commit abc210c69c

View File

@ -2,17 +2,8 @@ local Randomizer = require 'tetris.randomizers.randomizer'
local AlwaysRandomizer = Randomizer:extend() local AlwaysRandomizer = Randomizer:extend()
function AlwaysRandomizer:new(piece)
self.piece = piece
self:initialize()
self.next_queue = {}
for i = 1, 30 do
table.insert(self.next_queue, self:generatePiece())
end
end
function AlwaysRandomizer:generatePiece() function AlwaysRandomizer:generatePiece()
return self.piece return "I"
end end
return AlwaysRandomizer return AlwaysRandomizer