beaucarnes / fcc-project-tutorials

freeCodeCamp video project tutorials.
296 stars 416 forks source link

getting tie message if ai won from the last move #65

Open Pawan7778 opened 1 year ago

Pawan7778 commented 1 year ago

There is a bug: if AI wins from the last turn of the board, then the pop-up should display 'You Lose,' but it currently shows 'Tie.' This issue can be fixed by adding an additional condition inside the if() statement of the checkTie() function that checks for any winning combinations.