Ti randomizer no longer draws Z as first piece

This commit is contained in:
Ishaan Bhardwaj 2021-03-02 20:31:56 -05:00
parent 83de216408
commit 7250bee619

View File

@ -28,11 +28,8 @@ end
function History6Rolls35PoolRandomizer:generatePiece()
local index, x
if self.first then
local prevent = {"S", "Z", "O"}
repeat
index = math.random(#self.pool)
index = math.random(20)
x = self.pool[index]
until not inHistory(x, prevent)
self.first = false
else
for i = 1, 6 do