From 7250bee6195a5831f52887814c0f328f3e3e1823 Mon Sep 17 00:00:00 2001 From: Ishaan Bhardwaj Date: Tue, 2 Mar 2021 20:31:56 -0500 Subject: [PATCH] Ti randomizer no longer draws Z as first piece --- tetris/randomizers/history_6rolls_35bag.lua | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/tetris/randomizers/history_6rolls_35bag.lua b/tetris/randomizers/history_6rolls_35bag.lua index 000332a..123cc3b 100644 --- a/tetris/randomizers/history_6rolls_35bag.lua +++ b/tetris/randomizers/history_6rolls_35bag.lua @@ -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) - x = self.pool[index] - until not inHistory(x, prevent) + index = math.random(20) + x = self.pool[index] self.first = false else for i = 1, 6 do