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