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