Coding Challenge

Поділитися
Вставка
  • Опубліковано 24 гру 2024

КОМЕНТАРІ •

  • @TheCodingTrain
    @TheCodingTrain  5 років тому +29

    Donate! donorbox.org/supportpf2019-fundraising-campaign

    • @masternobody1896
      @masternobody1896 5 років тому

      Thanks for the knowledge

    • @TheAIJokes
      @TheAIJokes 5 років тому

      sir , Please teach us js

    • @abstractsophy
      @abstractsophy 5 років тому

      Amiya Lahiri
      Sir , you can learn it from literally anywhere

  • @irvanhardyanto7038
    @irvanhardyanto7038 9 місяців тому +1

    excellent explanation! Thanks!

  • @GasimovTV
    @GasimovTV 5 років тому +113

    Who ever reads this, have a great christmas and a great new year!

  • @Diamonddrake
    @Diamonddrake 5 років тому +6

    Thickness based on distance from center plus some noise value makes sense in real snowflake design.

  • @70ME3E
    @70ME3E 3 роки тому +3

    you're an amazing person and I loved these creative and cool looking stuff with so little code!

  • @marcoscomas2135
    @marcoscomas2135 5 років тому +6

    Ur great to watch. Every energetic and positive

  • @ashadodhiawala5039
    @ashadodhiawala5039 5 років тому +64

    #CodingChallenge
    Coding challenge: Make a sudoku solver

    • @kevintlu
      @kevintlu 5 років тому +3

      Yes, that would be great, also if you created a interp for a programming language you made up in js! So much fun!

    • @BaguetteDeP1
      @BaguetteDeP1 5 років тому +3

      if you find an algorithm who can solve sudoku, i pretty sure that you have resolved P = NP problem and won the 1 000 000 $ promised to the solver

    • @brandonkirincich8181
      @brandonkirincich8181 5 років тому

      I made one with recursive backtracking... for some reason...

    • @hoannis
      @hoannis 4 роки тому

      I try to learn Python , this is my try to solve Wikipedia's sudoku .
      www.dropbox.com/s/p98uc0avz4i8bb9/sudoku%20copy.py?dl=0
      Comments are on Greek .
      You are free to use it. Thank you.
      *it is writen in Python 2
      **simple.wikipedia.org/wiki/Sudoku
      And i found this on youtube , my programm can not solve this...
      ua-cam.com/video/hAyZ9K2EBF0/v-deo.html

    • @DavidPumpernickel
      @DavidPumpernickel 4 роки тому

      @@mcmisterhd1920 oh shit i thought it was an np problem thanks for clarifying this

  • @suryaatrish
    @suryaatrish 5 років тому +9

    Merry Christmas everybody!!! And please donate to P5. #supportP5
    Edit:- i cannot donate coz my region doesn't qualify for that. But everybody who can please do.

    • @SimonTiger
      @SimonTiger 5 років тому +1

      To everyone who can't donate in their country, that's only true on UA-cam. You can still donate here: donorbox.org/supportpf2019-fundraising-campaign

    • @TheCodingTrain
      @TheCodingTrain  5 років тому

      Thank you Simon!

    • @suryaatrish
      @suryaatrish 5 років тому

      @@SimonTiger Thanks for the information.

  • @randmorf
    @randmorf 5 років тому +2

    This is a really fun kaleidoscope program / Coding Challenge. Thank you.

  • @omarimam5936
    @omarimam5936 5 років тому +7

    Love the song in the end 😂🎄

  • @reedl9452
    @reedl9452 5 років тому

    The thickness should be decided by the distance from the origin as well as the distance from the axis of symmetry. Also, straight line from mouse press until the mouse stops moving

    • @mimifangs
      @mimifangs 4 роки тому

      how could you code it to make the thickness decided by distance from origin?

  • @asdfasdfasdf383
    @asdfasdfasdf383 4 роки тому

    absolute legend. this guy

  • @julian.kollataj
    @julian.kollataj 4 роки тому +1

    Great! I would use voice input as thickness control. :)

  • @arnavsirigere2877
    @arnavsirigere2877 5 років тому

    Guys if you can't donate you can still help by telling other people about it and spreading the word🙂

  • @eduardoxmenezes
    @eduardoxmenezes 5 років тому

    omg finally a snowflake!!! i've been waiting for someone who can do that's not the Koch's style :D

  • @endofmysteries
    @endofmysteries 5 років тому

    awesome work Dan!

  • @beron_the_colossus
    @beron_the_colossus 5 років тому +1

    Merry Christmas and I hope Processing reaches its goal

  • @Lena-qg8bd
    @Lena-qg8bd 5 років тому +4

    in 11:40 couldn't you use push() and pop()?
    EDIT: You added those at 16:05

  • @hitotsudaketsukinoko
    @hitotsudaketsukinoko 4 роки тому

    Mega Deluxe Paint nostalgiaaaaaa...

  • @parthasarathis349
    @parthasarathis349 5 років тому

    Always awesome....... power of looping...

  • @radh3y-_-
    @radh3y-_- 5 років тому +2

    Can you teach us to make qr code scanner in p5.js.
    Your videos are great.

  • @boiimcfacto2364
    @boiimcfacto2364 5 років тому

    Awesome video as always! I especially love these more artsy videos (filling the void in me where artistic skill is supposed to be)

  • @luanmagioli8108
    @luanmagioli8108 5 років тому

    Merry Christmas Daniel! It'll be nicer if the snowflakes were generated automatically!

  • @masonkelly4391
    @masonkelly4391 5 років тому +1

    Do Atari breakout for your next coding challenge

  • @PaulDenisevich
    @PaulDenisevich 5 років тому

    Thanks for the video, dude!

  • @mimifangs
    @mimifangs 4 роки тому

    how could i turn this into randomly generated kaleidoscopes? so that if i run it it will generate it randomly each time

  • @LegatAbyssWalker
    @LegatAbyssWalker 5 років тому +4

    i watched the 4 hour stream just last night. and i’m really tempted to watch this video, which is literally the same thing as the stream, 😂

  • @jamiedonaldson794
    @jamiedonaldson794 5 років тому +2

    Umm... thanks Dan! i was figuring out how to make the thing that you made by accident at 3:00 thanks

    • @ecelord3255
      @ecelord3255 5 років тому +1

      Lol why do you need it

  • @masonkelly4391
    @masonkelly4391 5 років тому +1

    Hi, I am new to coding, and your videos are very helpful. I have a question, I am trying to move an object with the arrow keys, so I looked up how, and for some reason, it just doesn't move, any idea why?

  • @clipi_
    @clipi_ 5 років тому

    Just perfect

  • @SimonTiger
    @SimonTiger 5 років тому +7

    "Five gold...argh!" The second time you did it wrong also!

  • @VJFranzK
    @VJFranzK 5 років тому +1

    interesting challenge!

  • @silentgrove7670
    @silentgrove7670 5 років тому

    Merry Christmas Coding Train ....

  • @thatkidmadrid
    @thatkidmadrid 5 років тому +1

    🎅🏻

  • @rayterex2469
    @rayterex2469 5 років тому +1

    I have a question, how can something like this, turn to be a website or something that runs whn there is an internet? Like some sort of a graphing website or something

  • @jeetmakwana3056
    @jeetmakwana3056 5 років тому

    #CodingChallenge
    Coding challenge :- madeinhaus.com/
    Background animation 😅

  • @lexibowling23
    @lexibowling23 5 років тому

    Is there any way you can do one on writing a Kaleidoscope webam??

  • @tuxedocow3297
    @tuxedocow3297 5 років тому +6

    Do you think p5 would be good in schools

    • @morphman86
      @morphman86 5 років тому

      Of course. Anything made for experimentation is also excellent for education.

  • @cybercomputerized2074
    @cybercomputerized2074 5 років тому

    Thank you for reposting this

  • @pluzinc
    @pluzinc 3 роки тому

    could u explain why i % 2==1 make it symmetrical? I’m lost here

  • @trapsimpson2630
    @trapsimpson2630 4 роки тому

    Could you do an electronics circuit simulator?

  • @dokxyt3665
    @dokxyt3665 5 років тому

    I am not a pro but can you use the scrole wheel to change the stroke

  • @muja6398
    @muja6398 3 роки тому

    I love you so muchhhhhh my saviour

  • @rikkiegieler5638
    @rikkiegieler5638 5 років тому +1

    Hi, I have a short question about p5.js.
    I have written a few programs so far in the web editor (in Safari), and I really like it.
    I’ve tried to implement BubbleSort, but I don’t know where it goes wrong.
    Basically, it is structured like this:
    let list = [];
    for(var i = 0; i < 10; i++){
    list.push(i);
    }
    function swap(arr, a, b){
    if (max(a, b) >= arr.length ||
    min(a, b) < 0){
    console.log('OutOfBoundsSwap');
    }//err handle
    let x = arr[a];
    arr[a] = arr[b];
    arr[b] = x;
    }//performs swaps
    function setup() {
    createCanvas(400, 400);
    shuffle(list, true);
    console.log(list);
    bubblesort(list);
    console.log(list);
    }
    function draw() {
    background(220);
    }
    Bubblesort has its own file (I plan to implement more algorithms). That one looks like this:
    function bubblesort(arr){
    for(let i = 0; i < arr.length; i++){
    for(let j = 0; j < arr.length - 1; j++){
    if (arr[j] > arr[j + 1]){
    swap(arr, j, j + 1);
    }
    }
    }
    }
    What I don’t understand is that both console.logs output a sorted list. And if I comment out the bubblesort(list), both output an unsorted list. Why doesn’t the first one in the original function output the unsorted list? I’ve searched for ‘p5js going back in time’ but I don’t really know what to search for. Does anybody know why this happens or how to fix it?

  • @heusbd
    @heusbd 5 років тому

    I know this is unrelated, but can you help me make delays between images? I'm trying to use delays like this:
    image(talking,430,300,320,200);
    image(ntalking,430,300,320,200);
    delay(10);
    But its not working.
    Please help me, thanks

  • @emulatorretro
    @emulatorretro 5 років тому

    Awesome video. Can I use this to capture it in a video so I can use it for a video opening? Or is it trademarked?

  • @patrickanthonysevilla3428
    @patrickanthonysevilla3428 5 років тому

    What is the code editor does Daniel is using? in his past videos

    • @TheCodingTrain
      @TheCodingTrain  5 років тому

      I use VSCode or the p5 web editor these days. More here: ua-cam.com/play/PLRqwX-V7Uu6Zu_uqEA6NqhLzKLACwU74X.html

  • @unkowndata2338
    @unkowndata2338 5 років тому

    Dan, how did you make that sweater?

  • @arnedebor6637
    @arnedebor6637 5 років тому

    Thanks a lot

  • @mshariq2472
    @mshariq2472 5 років тому

    For a coding challenge, can you make the brick breaker game please?

  • @kr-ways
    @kr-ways 5 років тому

    love you dad

  • @jeanjamil7891
    @jeanjamil7891 5 років тому

    Cool and easy tnx a lot

  • @tx6723
    @tx6723 5 років тому

    maybe try making some ml learning videos with java and processing and eclipse?

  • @crayolaksh
    @crayolaksh 5 років тому

    Merry Christmas to this.everyone

  • @muradeliyev6291
    @muradeliyev6291 5 років тому

    can you also make a video in which you play on ukulele???)) it would be great)

  • @f78.
    @f78. 5 років тому +5

    0:33 Theater mode and mobile users: yeah no

  • @adrianoalasia2357
    @adrianoalasia2357 5 років тому

    Hi! I'm new to p5 js and I don't know the difference between let and var? Is there any?

    • @TheCodingTrain
      @TheCodingTrain  5 років тому

      Try this video! ua-cam.com/video/q8SHaDQdul0/v-deo.html

  • @hjalitto
    @hjalitto 5 років тому

    You're the best!

  • @nakulsingh8444
    @nakulsingh8444 5 років тому

    Wow bro

  • @magenoir999
    @magenoir999 5 років тому

    GOTH SNOWFLAKE

  • @ronymyless5068
    @ronymyless5068 5 років тому

    hey how can i download p5. js in windows 10

    • @satyamgarg4364
      @satyamgarg4364 5 років тому

      Just go to it's official website and download it !
      Or you can use it's editor 😊

  • @jm69007
    @jm69007 5 років тому

    Great song, I want the tabs on Git :-)

  • @ayushrana3429
    @ayushrana3429 5 років тому +1

    you are the ceo of p5js
    ?

  • @Undecimal.
    @Undecimal. 5 років тому +2

    5:30 Line 11
    there is missing a "p"

  • @sosolowkey9318
    @sosolowkey9318 Рік тому

    16:00

  • @Leyonad
    @Leyonad 5 років тому

    angleMode(DEGREES); does not work in Processing

  • @darshanag669
    @darshanag669 5 років тому

    6:57

  • @aradarbel4579
    @aradarbel4579 5 років тому

    I wish I had a credit card, processing is super important for me and I'd give you even a few dollars if I could

  • @Jegory316
    @Jegory316 5 років тому

    Arghh in the dist it's pmousey at the end

  • @peterkovinski8476
    @peterkovinski8476 5 років тому

    How to make p5 tutorial.

  • @pyplacca
    @pyplacca 5 років тому

    I can't believe this video got dislikes 🤔

  • @12mkamran
    @12mkamran 5 років тому

    #CodingChallenge
    Coding challenge: Nonogram solver

  • @protonagee
    @protonagee 5 років тому

    26th! :D

  • @ijihero6621
    @ijihero6621 5 років тому +1

    why are alows happy give us secret

    • @ijihero6621
      @ijihero6621 5 років тому

      @FirstWeCode !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!¿¿¿¿¿¿¿¿¿¿¿¿¿¿¿¿¿¿¿¿¿¿¿¿¿¿¿

    • @rudyNok
      @rudyNok 5 років тому +1

      @FirstWeCode I think he meant to ask why is Dan always happy.

  • @cindylevine4374
    @cindylevine4374 5 років тому

    Hi Olympia if ur watching this

  • @michaelz6820
    @michaelz6820 5 років тому

    #CodingChallenge
    Code a snake without P5.js

  • @mahmednabil2429
    @mahmednabil2429 5 років тому

    you insane (;

  • @vincentcleaver1925
    @vincentcleaver1925 5 років тому

    Looks like Chinese characters at about 7 minutes

  • @maksimpa200
    @maksimpa200 5 років тому

    до циркулярной грамоты еще далеко. i.pinimg.com/originals/c7/19/51/c7195125d6a5ada85a8be0eb68f1fdd3.gif