From 65a25c997bb1dd54efee87041e8311421945c0d8 Mon Sep 17 00:00:00 2001
From: adrienmalin <41926238+adrienmalin@users.noreply.github.com>
Date: Tue, 21 Aug 2018 20:17:32 +0200
Subject: [PATCH] fix T-Spin detection

---
 source/tetromino.py | 11 +++--------
 1 file changed, 3 insertions(+), 8 deletions(-)

diff --git a/source/tetromino.py b/source/tetromino.py
index cc3759f..a0a2ce2 100644
--- a/source/tetromino.py
+++ b/source/tetromino.py
@@ -344,14 +344,9 @@ class TetroT(Tetromino, metaclass=MetaTetro):
             c = not self.matrix.is_empty_cell(pc)
             d = not self.matrix.is_empty_cell(pd)
 
-            if (a and b) and (c or d):
-                if c:
-                    pe = (pa + pc) / 2
-                elif d:
-                    pe = (pb + pd) / 2
-                if not self.matrix.is_empty_cell(pe):
-                    self.t_spin = "T-Spin"
-            elif (a or b) and (c and d):
+            if a and b and (c or d):
+                self.t_spin = "T-Spin"
+            elif c and d and (a or b):
                 self.t_spin = "Mini T-Spin"
         return rotated