reset flagcount upon restart
This commit is contained in:
parent
132b65d423
commit
8e10466781
3
minebash
3
minebash
@ -361,10 +361,11 @@ def setup_colors():
|
||||
clInverted = curses.color_pair(7)
|
||||
|
||||
def reset():
|
||||
global firstmove, playfield, FIELD_GENERATED, FIELDS_CLEARED, CURSOR_POSITION
|
||||
global firstmove, playfield, FIELD_GENERATED, FIELDS_CLEARED, CURSOR_POSITION, FLAGCOUNT
|
||||
firstmove = False
|
||||
playfield = [[UNKNOWN for x in range(width)] for y in range(height)]
|
||||
FIELD_GENERATED = False
|
||||
FLAGCOUNT = 0
|
||||
FIELDS_CLEARED = 0
|
||||
CURSOR_POSITION = [0,0]
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user