fix: winLine bug

This commit is contained in:
mnjx
2023-03-07 23:10:32 -10:00
parent 191c4d4fb0
commit 0a9d91af04
2 changed files with 7 additions and 7 deletions
+5 -5
View File
@@ -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:
+2 -2
View File
@@ -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: