diff --git a/latest/tictactoe-latest.py b/latest/tictactoe-latest.py index 946fe7b..895ac26 100644 --- a/latest/tictactoe-latest.py +++ b/latest/tictactoe-latest.py @@ -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: diff --git a/tictactoe-v2.2-new.py b/tictactoe-v2.2-new.py index a235f14..895ac26 100644 --- a/tictactoe-v2.2-new.py +++ b/tictactoe-v2.2-new.py @@ -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: