now fix the timeout when you increase your score
parent
4861f06233
commit
d7996f0d4d
|
@ -126,7 +126,9 @@ class Afutc:
|
|||
down = self.board[i + 1:]
|
||||
new_row = np.zeros(shape=(1, WIDTH))
|
||||
self.board = np.concatenate((new_row, upper, down))
|
||||
self.score += (10 * count) + (5 if count > 3 else 0)
|
||||
if count:
|
||||
self.score += (10 * count) + (5 if count > 3 else 0)
|
||||
self.stdscr.timeout(1000 - self.score)
|
||||
|
||||
# Generate a new piece
|
||||
self.current_move.fill(0.)
|
||||
|
|
Loading…
Reference in New Issue