black formatting

This commit is contained in:
Adrien MALINGREY 2019-10-08 01:11:51 +02:00
parent ee7e6fcdb9
commit 6135e24eac
2 changed files with 3 additions and 7 deletions

View File

@ -24,4 +24,4 @@ SCORES = (
{LINES_CLEAR_NAME: "DOUBLE", T_Spin.NONE: 3, T_Spin.T_SPIN: 12},
{LINES_CLEAR_NAME: "TRIPLE", T_Spin.NONE: 5, T_Spin.T_SPIN: 16},
{LINES_CLEAR_NAME: "TETRIS", T_Spin.NONE: 8},
)
)

View File

@ -13,7 +13,7 @@ from .consts import (
AUTOREPEAT_PERIOD,
MATRIX_PIECE_COORD,
SCORES,
LINES_CLEAR_NAME
LINES_CLEAR_NAME,
)
@ -82,7 +82,6 @@ class NextQueue(PieceContainer):
class Stats:
def _get_score(self):
return self._score
@ -302,10 +301,7 @@ class TetrisLogic:
# Pattern phase
# T-Spin
if (
type(self.matrix.piece) == T_Tetrimino
and self.matrix.piece.rotated_last
):
if type(self.matrix.piece) == T_Tetrimino and self.matrix.piece.rotated_last:
a = self.is_t_slot(T_Slot.A)
b = self.is_t_slot(T_Slot.B)
c = self.is_t_slot(T_Slot.C)