You have a small syntax error in that line of code.
Instead of
if (checkWin());
it should be
if (checkWin())
Remove the ;
solved Strange if statement always running even if conditions are not met [closed]
You have a small syntax error in that line of code.
Instead of
if (checkWin());
it should be
if (checkWin())
Remove the ;
solved Strange if statement always running even if conditions are not met [closed]