commented the debugger
parent
9ab42452da
commit
2cc5862032
|
@ -114,13 +114,15 @@ class Afutc:
|
||||||
self.pivot[1] += 1
|
self.pivot[1] += 1
|
||||||
|
|
||||||
def rotate(self):
|
def rotate(self):
|
||||||
if not self.debug:
|
# if not self.debug:
|
||||||
self.debug = "-1"
|
# self.debug = "-1"
|
||||||
self.debug = str(int(self.debug) + 1)
|
|
||||||
|
# self.debug = str(int(self.debug) + 1)
|
||||||
temp_board = self.current_move.copy()
|
temp_board = self.current_move.copy()
|
||||||
temp_board.fill(0.)
|
temp_board.fill(0.)
|
||||||
temp_piece = self.current_piece.copy()
|
temp_piece = self.current_piece.copy()
|
||||||
pivot = self.pivot[:]
|
pivot = self.pivot[:]
|
||||||
|
|
||||||
# Magic to rotate a matrix !!!!!!
|
# Magic to rotate a matrix !!!!!!
|
||||||
temp_piece = np.array(list(zip(*reversed(temp_piece))))
|
temp_piece = np.array(list(zip(*reversed(temp_piece))))
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue