More randomizer fixes?

This commit is contained in:
Ishaan Bhardwaj 2020-10-06 15:49:06 -04:00
parent 6b7f18d58a
commit f13e2096b2
2 changed files with 2 additions and 2 deletions

View File

@ -52,7 +52,7 @@ end
function GameMode:initialize() function GameMode:initialize()
-- after all the variables are initialized, run initialization procedures -- after all the variables are initialized, run initialization procedures
for i = 1, 30 do for i = 1, self.next_queue_length do
table.insert(self.next_queue, self:getNextPiece(ruleset)) table.insert(self.next_queue, self:getNextPiece(ruleset))
end end
end end

View File

@ -4,7 +4,7 @@ local Bag5AltRandomizer = Randomizer:extend()
function Bag5AltRandomizer:initialize() function Bag5AltRandomizer:initialize()
self.bag = {"I", "J", "L", "O", "T"} self.bag = {"I", "J", "L", "O", "T"}
self.prev = "O" self.prev = nil
end end
function Bag5AltRandomizer:generatePiece() function Bag5AltRandomizer:generatePiece()