Build an Awesome Version of Tic Tac Toe in React Tutorial

แชร์
ฝัง
  • เผยแพร่เมื่อ 29 ธ.ค. 2024

ความคิดเห็น •

  • @UrDailyPage
    @UrDailyPage 19 วันที่ผ่านมา +1

    I just want to say a huge thank you for your amazing React tutorial! Your ability to explain complex topics in a simple and understandable way is truly impressive. It's clear that you put a lot of effort into making the material accessible for all skill levels, and it makes a big difference for those of us learning. Keep up the fantastic work - you're a huge help to the entire developer community! 😄🙏🏽

    • @CodingWithAdam
      @CodingWithAdam  15 วันที่ผ่านมา +1

      You're welcome! Thank you so much for such a thoughtful comment - it truly means a lot to me. I'm thrilled to hear that the tutorial was helpful! Feedback like yours really validates the effort I put into creating these resources and inspires me to keep going. Knowing that it's making a difference for the developer community is incredibly rewarding. Thanks again for your support!

  • @mepravinjadhav
    @mepravinjadhav 11 หลายเดือนก่อน +2

    Really well structured and good voice over. Thank you

    • @CodingWithAdam
      @CodingWithAdam  11 หลายเดือนก่อน

      You’re welcome! Thank you for the great feedback! 😁

  • @sajanghuman
    @sajanghuman ปีที่แล้ว +8

    Really well structured and good voice over. Thank you☺☺

    • @CodingWithAdam
      @CodingWithAdam  ปีที่แล้ว +1

      Thank you for the wonderful feedback! I’m really glad you enjoyed the video! 😁

  • @MariaGabrielaOliveiradaConceiç
    @MariaGabrielaOliveiradaConceiç ปีที่แล้ว +3

    I'm gonna use this as my practical project cause I have to talk about ReactJS on my university presentation. Thank you so much!!!

    • @CodingWithAdam
      @CodingWithAdam  ปีที่แล้ว +1

      You’re welcome! Good luck on the presentation!

  • @vijayverma-dd7oe
    @vijayverma-dd7oe 11 หลายเดือนก่อน +4

    I followed each and every step and learn a lot from here.
    and also the shortcuts which where really usefull.

    • @CodingWithAdam
      @CodingWithAdam  11 หลายเดือนก่อน +1

      That’s awesome! I’m really glad that you learned a lot and that the video was helpful. Thank you for taking the tutorial!

  • @YuelinLiu
    @YuelinLiu ปีที่แล้ว +1

    It's very helpful! Decent Logical and Structured Tutorial, Clear explanation about code, stylesheet, even extension tools.

    • @CodingWithAdam
      @CodingWithAdam  ปีที่แล้ว

      Happy to hear that the tutorial was helpful! Thank you for the wonderful feedback 😁

  • @IbifubaraAduonye
    @IbifubaraAduonye ปีที่แล้ว +5

    Good tutorial with good explanation and your teaching is systematic. I went through your channel and I deduce that you tilt towards game development. Well done!

    • @CodingWithAdam
      @CodingWithAdam  ปีที่แล้ว +1

      Thank you for the feedback. That’s right I have focused a little bit more on game development as it’s a fun topic to explore 😁

  • @allsparky
    @allsparky 11 หลายเดือนก่อน +2

    This is an incredible guide! Thank you sir!

    • @CodingWithAdam
      @CodingWithAdam  11 หลายเดือนก่อน

      You’re welcome! Thank you for the wonderful feedback! 😀

  • @SuperMady1000
    @SuperMady1000 4 หลายเดือนก่อน +2

    Really good! Thank you for sharing this amazing content!

    • @CodingWithAdam
      @CodingWithAdam  4 หลายเดือนก่อน +1

      You’re welcome! Glad you enjoyed the tutorial 😁

  • @richamaheshwari7582
    @richamaheshwari7582 7 หลายเดือนก่อน +2

    Very clear explanation 😊

  • @fonjiopeter808
    @fonjiopeter808 3 หลายเดือนก่อน +2

    Wow I loved this tutorial, helped me a lot the use of array, pls could you do some more react tutorial??

    • @CodingWithAdam
      @CodingWithAdam  3 หลายเดือนก่อน +1

      Thank you! I’m glad you enjoyed the tutorial and that it helped with using arrays. Always happy to hear that the tutorials are helpful! Appreciate the suggestion and hopefully will make more react tutorials in the future.

  • @adsarode
    @adsarode 9 หลายเดือนก่อน +2

    Thank you for the wonderful tutorial 🙏

    • @CodingWithAdam
      @CodingWithAdam  9 หลายเดือนก่อน +2

      You’re welcome! 😁

  • @Nop3.1
    @Nop3.1 ปีที่แล้ว

    at 15:17 when i put in the value={tiles[0]} i get an error saying "Cannot read properties of undefined (reading '0')"
    what does this mean? google hasn't been of much help.

    • @CodingWithAdam
      @CodingWithAdam  ปีที่แล้ว

      It means that the variable tiles does not exist. Perhaps it was not initialized or passed into the component. I would console log tiles at different parts of the code to find where it does not exist.

    • @ankitpatyal3201
      @ankitpatyal3201 ปีที่แล้ว

      @Nop3.1 You must be using "for in" loop. Try to use "for of" loop

    • @anishkhadka4221
      @anishkhadka4221 6 หลายเดือนก่อน

      He forgot to show that he actually had added 2 parameter in useEffect Checkwinner() function down

  • @philipbrown8502
    @philipbrown8502 ปีที่แล้ว +1

    Hey Adam, I tried using a map across the tiles array to render a unique tile to reduce the repetitive code on the Board component. Thanks for creating this video. Really appreciate it! 😄

    • @CodingWithAdam
      @CodingWithAdam  ปีที่แล้ว

      You’re welcome! That’s awesome, I’m happy you got the map to work to reduce the repetition! I’m also glad you enjoyed the tutorial! Thanks for the feedback!

  • @DoctorQP
    @DoctorQP 8 หลายเดือนก่อน +2

    This is really awesome!, thanks a lot!!

    • @CodingWithAdam
      @CodingWithAdam  7 หลายเดือนก่อน +1

      You’re welcome! Glad you liked the tutorial!

  • @the-fax10
    @the-fax10 11 หลายเดือนก่อน

    43:42 , its showing an error "tiles.every is not a function" please help!

    • @CodingWithAdam
      @CodingWithAdam  11 หลายเดือนก่อน

      Sounds like tiles might not be initialized to a value and is null. Console log tiles to check. You can also compare your code to the solution on GitHub. I hope this helps.

  • @timeforrice
    @timeforrice 11 หลายเดือนก่อน +2

    Great video!

    • @CodingWithAdam
      @CodingWithAdam  11 หลายเดือนก่อน

      Thank you! I’m glad you enjoyed the video! 😁

  • @madhuraiyengar3517
    @madhuraiyengar3517 5 หลายเดือนก่อน +2

    The tutorial helped me in understanding many concepts, thank you
    But just one question - I see that you have hosted this using the github pages, can you please tell the steps to host it?
    I tried but its not working.

    • @CodingWithAdam
      @CodingWithAdam  5 หลายเดือนก่อน +1

      You’re welcome! Glad the tutorial was helpful. If you have not already found the answer I made video a few years ago on how to deploy to gh pages it should still be relevant. Let me know if it works.

  • @ren5124
    @ren5124 11 หลายเดือนก่อน +1

    Can you explain how to configure the css for strike-through I made my own implementation of the tic tac toe game but the strike through is not aligned with my grid

    • @CodingWithAdam
      @CodingWithAdam  11 หลายเดือนก่อน +1

      It was a lot of trial and error to get the line In the correct location. I used absolute positioning. Check out my css to get a better understanding. It is linked in the description.

  • @abhishekde9387
    @abhishekde9387 10 หลายเดือนก่อน +2

    Awesome... Thank You.

  • @lgabro3750
    @lgabro3750 11 หลายเดือนก่อน +1

    Great video keep it up

  • @Misterkennedy04
    @Misterkennedy04 2 หลายเดือนก่อน

    I got the game to work only problem is when X or O wins the game just disappears then I have to refresh

    • @CodingWithAdam
      @CodingWithAdam  2 หลายเดือนก่อน

      That's awesome, sounds like you are really close to getting it working. Sounds like it might be crashing at the end of the game. I would take a look at the chrome dev tools console to see if you see any errors. You can try the version that I uploaded to github to check if it is also working correctly in your browser. codingwith-adam.github.io/tic-tac-toe-react/
      You can also compare it to the complete version here github.com/CodingWith-Adam/ti...
      Hope that you get it to work! Thanks for taking the tutorial!

  • @SagarTakoresdt
    @SagarTakoresdt 7 หลายเดือนก่อน +1

    does this work for any board size?

    • @CodingWithAdam
      @CodingWithAdam  7 หลายเดือนก่อน

      It only works for 3x3. But the code could be changed to work for different board sizes.

    • @SagarTakoresdt
      @SagarTakoresdt 7 หลายเดือนก่อน +1

      @@CodingWithAdam Yes, we can create any board size easily. By adding CSS and utilizing fill(size * size), we can adjust the board dimensions. However, we need to dynamically determine the winning combinations by adding loops for vertical, horizontal, and diagonal checks.

    • @CodingWithAdam
      @CodingWithAdam  7 หลายเดือนก่อน +2

      @SagarTakoresdt yes that would be the more difficult part 😀

  • @aero-036srivatsanp9
    @aero-036srivatsanp9 ปีที่แล้ว +3

    If you have a course i will buy put a link

    • @CodingWithAdam
      @CodingWithAdam  ปีที่แล้ว +2

      Thank you! Although I do not have any paid courses at this time. Perhaps some time in the future. 😁

    • @aero-036srivatsanp9
      @aero-036srivatsanp9 ปีที่แล้ว +2

      @@CodingWithAdam i hope you will do some video on react forms

  • @janardhanreddy5845
    @janardhanreddy5845 ปีที่แล้ว

    I completed combo and if statement but when ever I won the game the strike line is not coming

    • @CodingWithAdam
      @CodingWithAdam  ปีที่แล้ว

      I would add some console logs to check the values returned. Also first check if the strike css works by adding it manually as we do during one of the steps of the video. Let me know if you get it 😀

    • @sobowalet
      @sobowalet ปีที่แล้ว

      ​@@CodingWithAdam ... Hello Adam ... a wonderful tutorial you have here. I've been glued onto it for nearly 24 hours now. I tried implement the strike line CSS using the 'useState', dynamically and manually, it doesn't return the strike. If I hardcode the CSS, I get the lines produced. Am I missing something.
      I realized while I try to implement the official Tic-Toc-Tac game from react too, I couldn't get the status line outputted as well.
      I followed the steps all through.

    • @CodingWithAdam
      @CodingWithAdam  ปีที่แล้ว

      @sobowalet I would suggest adding some console logs to see if you are getting the strike through value set correctly in the tic toe component and then checking the value is passed down into the various children correctly board etc. let me know if you find the issue. Also compare your solution to the final solution on GitHub.

    • @sobowalet
      @sobowalet ปีที่แล้ว

      @@CodingWithAdam Thanks Adam, the CSS prop strikeClass is passed onto the components, parent and children, however, the CSS class displays "undefined" in the console.

    • @sobowalet
      @sobowalet ปีที่แล้ว

      @@CodingWithAdam ... One thing I actually noticed is that I get a page error on the console, indicating a failed stylesheet URL loading. What is suprising is the stylesheet works when coded manually .... every other thing works fine but just this.