JavaScript Maze Generation (Depth First Search) Tutorial

Поделиться
HTML-код
  • Опубликовано: 17 ноя 2024

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

  • @EliKennedy
    @EliKennedy 3 месяца назад +1

    I know I'm late to the party on this but THANKS for this upload man.

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

    Hello sir that was a grat work actully i m a student from sharif university and this algorithem is for our first assignment in AP and your video helped me a lot thanks

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

      Awesome! Thanks Arash and all the best for your studies! I really like this algorithm. Really fun to see it working using the canvas. 👍

  • @AAAA-rb2hm
    @AAAA-rb2hm 2 года назад +1

    Wow, so instructive and educational! Thanks a lot, Conor for this great Maze generating game! Please upload more, looking forward to more!

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

      Thanks mate! I really enjoyed this maze project! Need to get back into data structures and algorithms. I’m quite rusty at the moment 😅

  • @xcubswinx
    @xcubswinx 3 года назад +2

    bro i just made something similar to this in python and was LOSING MY MIND trying to remake it with js and canvas. this helped so much. watched this whole vid, liked, subbed. thanks for posting this!!

  • @juanstakys
    @juanstakys 3 месяца назад

    Thanks for the excellent tutorial!

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

    Question.. is there any way to create choose cell as a wall instead of a line between two cell...what i want to say us what if we want to choose an element as wall instead of a line..
    ex: [1, 0, 1] here 0 -> wall.. i.e., there is an wall between index 0 and 2

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

    This video was so helpful, thank you so much! Quick question, how do I change the code so that I can input a different width and height and still create a working maze?

  • @joshthomas4064
    @joshthomas4064 4 года назад +2

    Do you have a github repository for this? (if not please could you create on)

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

      Here you go mate: github.com/conorbailey90/Javascript-DFS-Maze

    • @joshthomas4064
      @joshthomas4064 4 года назад

      @@ConorBailey Thank you!

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

    Can you do like this exact output in java programme?

  • @9akriti
    @9akriti 3 года назад

    I'm following along with the video but getting an Uncaught TypeError: cannot read property 'topWall' of undefined at timestamp 31:57. I'm not familiar with JS syntax but after some googling, the code seems fine. Anyone else run into this issue?

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

    Can you please explain, how to only genarate the maze and do not animate it and if possible the width of path is equal to width of wall.....

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

      Hi mate. Will look to create a tutorial soon. I’m a bit out of touch with creating mazes and this algo so will need to have to investigate. Cheers for watching.

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

      Great! i will wait...

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

    how can you slow down the animation?

    • @ChrisCooper0
      @ChrisCooper0 2 года назад +2

      I wrapped this.draw() in a setTimeout function with a delay of 500 to better visualise each cell move i.e. window.requestAnimationFrame(() => {
      setTimeout(() => {
      this.draw();
      }, 500);
      });

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

      @@ChrisCooper0 how I can change the purple pointer to an emoticon?