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
There is no need to iterate over the entire array every time a method is called. We can simple cache the number of free cells in a variable and decrease its value with each player's move.
0 commit comments