You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This quick and easy approach for the Tic Tac Toe game algorithm. One issue I have noticed is that the game works perfectly well if I win on the 3rd click. But, if I win on the 4th step it is not being counted and always return 'Game tied'.
This is because the below condition fails on the 4th click game win,
If you change the condition to the one I specified in my last comment, it
is fixed. I updated the code on this repo on the ES5 branch but haven't
updated it on heroku yet.
This quick and easy approach for the Tic Tac Toe game algorithm. One issue I have noticed is that the game works perfectly well if I win on the 3rd click. But, if I win on the 4th step it is not being counted and always return 'Game tied'.
This is because the below condition fails on the 4th click game win,
Any fix identified?
Thanks.
The text was updated successfully, but these errors were encountered: