Click here to Skip to main content
15,877,967 members
Please Sign up or sign in to vote.
1.00/5 (5 votes)
See more:
Can anyone help, I want to put a tie message conditional if there's no one wins the game. I really need help as af, please don't report me I just need someone kind to help me checkin if you can't mind your own business here's my code for someone

Edit fiddle - JSFiddle[^]

What I have tried:

Edit fiddle - JSFiddle[^]
Updated 2-Jul-18 11:47am

1 solution

Take a look at the changes here CP_tic_tac - JSFiddle[^]

1. Added a small code to prevent click after a winner
2. Display draw message if no winner at the end of the game
Share this answer
[no name] 4-Jun-18 1:24am    
thank you so much :)
Bryian Tan 4-Jun-18 7:38am    
Awww. Not sure why it get downvoted. Let me know if that not what you looking for. I made a very simple change to the code, added a variable to check if there a winner and display draw message if no winner at the end of the game
Richard Deeming 4-Jun-18 9:31am    
Down-vote countered, but the OP was a spammer and has been terminated:
moderated spammer (yesmemes)[^]
Bryian Tan 4-Jun-18 14:25pm    
Thank you :)

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900