fix: winLine bug
This commit is contained in:
@@ -1,8 +1,8 @@
|
||||
# TODO - __DONE__ variable symbol count needed to win
|
||||
# - __DONE__ selecting the position of the new symbol by moving a cursor with arrow keys inside the playfield, press return to place the symbol
|
||||
# - when a game ends, the winning symbols will blink a few times
|
||||
# - __DONE__ selecting the position of the new symbol by moving a cursor with arrow keys inside the playfield, press space to place the symbol
|
||||
# - __DONE__ when a game ends, the winning symbols will blink a few times
|
||||
|
||||
# add: variable symbol count needed to win, selecting the position of the new symbol by moving a cursor with arrow keys inside the playfield, press return to place the symbol
|
||||
# add: variable symbol count needed to win, selecting the position of the new symbol by moving a cursor with arrow keys inside the playfield, press space to place the symbol, when a game ends, the winning symbols will blink a few times
|
||||
# fix: general bugfixes
|
||||
# update: comments
|
||||
|
||||
@@ -299,7 +299,7 @@ def check(pf):
|
||||
o = 0
|
||||
except IndexError:
|
||||
continue
|
||||
if o >= symbolCount:
|
||||
if o == symbolCount:
|
||||
winLine = temp
|
||||
return 0
|
||||
elif o < symbolCount:
|
||||
@@ -351,7 +351,7 @@ def check(pf):
|
||||
x = 0
|
||||
except IndexError:
|
||||
continue
|
||||
if x >= symbolCount:
|
||||
if x == symbolCount:
|
||||
winLine = temp
|
||||
return 1
|
||||
elif x < symbolCount:
|
||||
|
||||
Reference in New Issue
Block a user