mirror of
https://github.com/SashLilac/cambridge.git
synced 2024-11-22 17:09:02 -06:00
More randomizer fixes?
This commit is contained in:
parent
6b7f18d58a
commit
f13e2096b2
@ -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
|
||||||
|
@ -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()
|
||||||
|
Loading…
Reference in New Issue
Block a user