Это видео недоступно.
Сожалеем об этом.

Build Tic Tac Toe using HTML + CSS + Javascript!

Поделиться
HTML-код
  • Опубликовано: 24 мар 2020
  • Let's build a Tic Tac Toe game from scratch using only HTML, CSS, and Javascript! This is a beginner-friendly tutorial that will guide you through building a complete tic tac toe game, with no shortcuts.
    🗄 Resources:
    Symbol used for x: ×
    Symbol used for o: ○
    Github Repo: github.com/ang...
    🔑 Key Concepts:
    - HTML
    - CSS
    - Javascript (JS)
    - Flexbox
    - CSS Grid
    - event listeners
    - event handlers
    - querySelector and querySelectorAll
    #HTML #CSS #JS

Комментарии • 44

  • @jolandal8283
    @jolandal8283 4 года назад +8

    I was so pumped to click on your page and find out that you have a lot of other cool JS projects! I really enjoyed this project, I look forward to building the rest!

  • @manuchehrqoriev
    @manuchehrqoriev Год назад +1

    Keep it up bro. Love your projects and appreciate your time that you spend to create such kinda JS projects

  • @prakashgunjari1986
    @prakashgunjari1986 3 года назад +5

    Learnt a lot of Javascript and CSS, thank you for your time and effort to make this video.

  • @RealMusicalPleasure
    @RealMusicalPleasure 4 года назад +6

    I skimmed thru the video and what I really like about it is that you show your thought process. Most building tutorials basically just copy and paste debugged code with minimal explanation.
    e.g. @47:00 onwards

    • @AngleCoding
      @AngleCoding  4 года назад +3

      thank you! I will keep this in mind in my future videos as well. Stay tuned for more content

  • @01kmacias
    @01kmacias 2 года назад +2

    I'm having trouble understanding what the index number is doing in two lines of code? Could someone tell me what [1] and [2] referencing in the respective lines?
    const location = classList[1];
    if (classList[2] === "x" || classList[2] === "o") {
    return;
    }

  • @lenilunderman3697
    @lenilunderman3697 4 года назад +5

    please more mini projects! that was awesome!

  • @janvijain4544
    @janvijain4544 3 года назад +1

    sir, i have taken tutorial from many youtuber but u r best ...because every step is defined in detail and i m looking forward to more projects.

  • @MundoJucora
    @MundoJucora 4 года назад +8

    Thank you so much, please continue with these tutorials, you are a great teacher :)

  • @KF_YK
    @KF_YK 3 года назад +1

    you are such a good teacher Justin! really benefited from your video! cheers

  • @mcblend829
    @mcblend829 2 года назад +1

    My first javascript game 😃.... thank you sir a lot!

  • @devdevloper9057
    @devdevloper9057 3 года назад +1

    Can you help me to display who is won, and game tie in below the board...using another display div?? and also how to play it with coputer and user???

  • @Dev_Eli
    @Dev_Eli 3 года назад +1

    now I know how to code because of this. Thanks man!

  • @Baggersproductions
    @Baggersproductions 4 года назад +4

    this is awesome, and free! amazing thank you bro

  • @KOM-jh
    @KOM-jh 4 года назад +1

    Why is my statusDiv not defined in console? This is what I have const statusDiv = document.querySelector('.status');

  • @aboulayetchakoura5429
    @aboulayetchakoura5429 3 года назад +1

    That is really nice one. i did enjoy this video.

  • @charlotteh2907
    @charlotteh2907 2 года назад

    when i try to to console log e.tagret.classlist it says it's undifined. so can't really get past that point even after comparing the code in the video to my own.

  • @joelaul
    @joelaul Год назад

    What determines whether we use a div or a header element for text generally?

  • @monikasmierzchalska9077
    @monikasmierzchalska9077 3 года назад

    Thank you so much for your work, Awesome step by step explanations!

  • @bumblebeesj6283
    @bumblebeesj6283 2 года назад

    Hey, how can i implement a list of questions, and if the player anwser wrong, the turn pass by the other player?

  • @Unfavalen
    @Unfavalen 3 года назад +1

    Can you create 4x4 please

  • @mannysencion6033
    @mannysencion6033 3 года назад +1

    i dont get it. i code along and my code is broken even though im following every single step. smh

  • @vishwajoshi5670
    @vishwajoshi5670 3 года назад

    AFTER WRITING .X::BEFORE CODE ..WHEN I CLICK ON ONE OF THE CELL... X does not shows up please help sir

  • @benjamincatofficial
    @benjamincatofficial 3 года назад

    Me after just changing the title: *it's already a masterpeice*

  • @shandyhery6685
    @shandyhery6685 3 года назад +1

    Great programmer

  • @22alison19
    @22alison19 4 года назад +2

    this is amazing for me omg thank you very muchhh

  • @darkgod7188
    @darkgod7188 3 года назад +1

    I want to add background color, behind the game, can u please help, please.

    • @darkgod7188
      @darkgod7188 3 года назад

      Please sir

    • @_kuba_9850
      @_kuba_9850 3 года назад

      in CSS: body { background-color: yourCoolor }

  • @gauthamelango2987
    @gauthamelango2987 4 года назад +3

    From reddit

  • @gauthamelango2987
    @gauthamelango2987 4 года назад +1

    hi please post projects on I frames with vanilla javascript alone

  • @nov28tutorials49
    @nov28tutorials49 4 года назад +1

    Can I have a link to have a done code for the whole tutorial

  • @alinynovais7672
    @alinynovais7672 2 года назад

    Thanks a lot !!!

  • @krrishchaudhary1085
    @krrishchaudhary1085 3 года назад

    can you make a video to add vs computer option

  • @omkarpatil9886
    @omkarpatil9886 3 года назад

    Great!! Thanks... understood each and every line of code
    Subscribers++;

  • @rodrigosilva5715
    @rodrigosilva5715 3 года назад

    thank you , you help me a lot

  • @kirtisharma3820
    @kirtisharma3820 3 года назад

    what is e in function?

  • @chauminh874
    @chauminh874 2 года назад

    why i can do (e)

  • @kavitaanand8005
    @kavitaanand8005 4 года назад +1

    I made this project, but it is not working 😑😑😑😑😑😑. Can you plz provide me code of the game in pdf format

  • @30secondsEmotions
    @30secondsEmotions 3 года назад

    Is This for beginner

  • @schwartz478
    @schwartz478 3 года назад

    I can see some positives in make the view using pure CSS but technically it's better to make a tic-tac-toe class that does all the rules and the use the html5 canvas to draw out behavior. Don't want to be rude, but this video doesn't show good programming practices, don't make a tictactoe game this way

    • @AngleCoding
      @AngleCoding  3 года назад

      Why is it “technically” better to have classes and to use html 5? That’s like saying it’s better to use React+TS for a counter app, and to use redux to manage the counter state.
      It’s perfectly fine to make a simple game like this