fix: winLine bug
This commit is contained in:
@@ -1,8 +1,8 @@
|
|||||||
# TODO - __DONE__ variable symbol count needed to win
|
# 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
|
# - __DONE__ 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
|
# - __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
|
# fix: general bugfixes
|
||||||
# update: comments
|
# update: comments
|
||||||
|
|
||||||
@@ -299,7 +299,7 @@ def check(pf):
|
|||||||
o = 0
|
o = 0
|
||||||
except IndexError:
|
except IndexError:
|
||||||
continue
|
continue
|
||||||
if o >= symbolCount:
|
if o == symbolCount:
|
||||||
winLine = temp
|
winLine = temp
|
||||||
return 0
|
return 0
|
||||||
elif o < symbolCount:
|
elif o < symbolCount:
|
||||||
@@ -351,7 +351,7 @@ def check(pf):
|
|||||||
x = 0
|
x = 0
|
||||||
except IndexError:
|
except IndexError:
|
||||||
continue
|
continue
|
||||||
if x >= symbolCount:
|
if x == symbolCount:
|
||||||
winLine = temp
|
winLine = temp
|
||||||
return 1
|
return 1
|
||||||
elif x < symbolCount:
|
elif x < symbolCount:
|
||||||
|
|||||||
@@ -299,7 +299,7 @@ def check(pf):
|
|||||||
o = 0
|
o = 0
|
||||||
except IndexError:
|
except IndexError:
|
||||||
continue
|
continue
|
||||||
if o >= symbolCount:
|
if o == symbolCount:
|
||||||
winLine = temp
|
winLine = temp
|
||||||
return 0
|
return 0
|
||||||
elif o < symbolCount:
|
elif o < symbolCount:
|
||||||
@@ -351,7 +351,7 @@ def check(pf):
|
|||||||
x = 0
|
x = 0
|
||||||
except IndexError:
|
except IndexError:
|
||||||
continue
|
continue
|
||||||
if x >= symbolCount:
|
if x == symbolCount:
|
||||||
winLine = temp
|
winLine = temp
|
||||||
return 1
|
return 1
|
||||||
elif x < symbolCount:
|
elif x < symbolCount:
|
||||||
|
|||||||
Reference in New Issue
Block a user