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.


Comments

  1. Can you please provide source file link here

    ReplyDelete
    Replies
    1. Hi
      Please find source code link below
      https://drive.google.com/file/d/1TCBbbJ_IDoXv2I1ZEQGMDhmAo6jRwGfU/view?usp=drivesdk

      Delete
  2. 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.

    ReplyDelete
    Replies
    1. Hi Leonel,

      Thanks 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.

      Delete
    2. I used your source code and tried doing some modifications and it's awesome.
      Thanks a lot.

      Delete
    3. Hi Leonel
      Thanks for your feedback, stay tuned for similar posts.

      Best of Luck

      Delete

Post a Comment

Popular posts from this blog

Environment Setup | Install eclipse, notepad plus plus and JDK | Java programming course