Kushagar-Mahajan / CPP-Program

A few set of C++ programs
0 stars 0 forks source link

Tic-Tac-Toe game code edited to identify early draw and end the game #5

Open omidrostamabadi opened 5 years ago

omidrostamabadi commented 5 years ago

according to #4 , I've worked a little on the code and added the feature of Early_Draw_Exit. I wrote a function named checkdraw() and after each move , it checks whether players still stand a chance.If there's no chance , the game will be closed with a Draw message.