Tic Tac Toe game using HTML and JavaScript
You must have played tic tac toe game but what about creating the one yourself.
Well you might be thinking it will take lot of time but what if i say you can build a tic tac toe game within half an hour.
Well you may not believe me at this point but after going through below video you will definitely be able to create one yourself.
Can you please provide source file link here
ReplyDeleteHi
DeletePlease find source code link below
https://drive.google.com/file/d/1TCBbbJ_IDoXv2I1ZEQGMDhmAo6jRwGfU/view?usp=drivesdk
I have downloaded the file and opened it in phone.But board appears to be stretched vertically. But in video it seems perfect, can you please suggest what modification I need to do.
ReplyDeleteHi Leonel,
DeleteThanks for reaching to us:
If you check source code you will find style attribute on button elements.
style="height: 10vh; width: 5vw;"
It means height of each button is 10 viewport height and width is 5 viewport width.
In desktop and laptops width is more than height hence above code was Working fine but in phone height is more than width which caused buttons to be deformed.
Please try modifying style, it should help.
You may try below style:
style="height: 5vh; width: 5vw;"
Best of luck.
I used your source code and tried doing some modifications and it's awesome.
DeleteThanks a lot.
Hi Leonel
DeleteThanks for your feedback, stay tuned for similar posts.
Best of Luck