only test if can move before lock
This commit is contained in:
parent
f5225b3a55
commit
d70173f87b
@ -207,7 +207,11 @@ class TetrisLogic():
|
|||||||
|
|
||||||
def lock(self):
|
def lock(self):
|
||||||
# Piece unlocked
|
# Piece unlocked
|
||||||
if self.move(Movement.DOWN):
|
if self.can_move(
|
||||||
|
self.current.coord + Movement.DOWN,
|
||||||
|
(mino.coord for mino in self.current)
|
||||||
|
):
|
||||||
|
self.restart(self.lock, self.lock_delay)
|
||||||
return
|
return
|
||||||
|
|
||||||
# Start lock
|
# Start lock
|
||||||
|
Loading…
x
Reference in New Issue
Block a user