Coding Challenge #69: Evolutionary Steering Behaviors - Part 3

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

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

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

    13:10: "Maybe the optimal one might just kind of appear", Dan says as the optimal one gloriously emerges behind him, at that exact moment, after all others died

  • @joraforever9899
    @joraforever9899 7 лет назад +25

    13:57 that creature has discovered a bug, it doesn't eat the red stuff

    • @sohailape
      @sohailape 6 лет назад +1

      isn't that what we want??

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

    6:14 the little vehicle struggles trying to reach the piece of food in front of him... But the other vehicle steals it with arrogance

  • @dashsmashing
    @dashsmashing 7 лет назад +9

    Love how your other laptop is in the shot, but translucent. A ghost laptop!

  • @Shinika01
    @Shinika01 7 лет назад

    Awesome lesson !
    I am watching your for a month, and gave a shot to P5 to reproduce this lesson yesterday with the full video.
    I love it, i love your lessons, you are showing great subjects, interresting projects, fun and really well explained!
    Don't change anything (or too much...) stay just like you are since i am watching

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

    7:00 just pass perception as an argument straight away
    Also, initialize record as perception to remove unnecessary check

  • @KendallClarkinDC
    @KendallClarkinDC 7 лет назад

    "I want to be a little bit more thoughtful about this", *adds uncommented magic constant to cut-and-pasted code*... 💯🔥

  • @IotaBlack
    @IotaBlack 7 лет назад +11

    Poison won't be eaten if it can't see it. Move the perception test to the seek function call

    • @Bisofication
      @Bisofication 7 лет назад +1

      Wait, the video was uploaded few hours ago but your comment is 5 days old. How?

    • @starmanL0L
      @starmanL0L 7 лет назад +2

      It was in the Intelligence and Learning playlist, but as unlisted.

    • @Brown614
      @Brown614 7 лет назад

      Whoa Bisofic you're right... That's weird

    • @IotaBlack
      @IotaBlack 7 лет назад

      all videos were available in the description

    • @shuzhizhi5827
      @shuzhizhi5827 5 лет назад

      yes,it's a bug

  • @denniskim2352
    @denniskim2352 7 лет назад +1

    Thanks so much for this! Keep doing what you do!

  • @Chris-Brown-
    @Chris-Brown- 3 года назад

    I'm making food/poision with ranging health
    The other thing I do is a make a gene pool select and combine two parents, then replace a random gene in the pool if its better
    I also have genes with a score and normalized value, re-normalise all values when there is a new high score

  • @thegreenhoneybee9687
    @thegreenhoneybee9687 7 лет назад +12

    For the lazy, here is the link for the stay within walls code:
    github.com/shiffman/The-Nature-of-Code-Examples-p5.js/tree/master/chp06_agents/NOC_6_03_StayWithinWalls
    your welcome :P

    • @TheCodingTrain
      @TheCodingTrain  7 лет назад +5

      Thank you for linking this!

    • @thegreenhoneybee9687
      @thegreenhoneybee9687 7 лет назад +1

      Why fix it? I don't have time every day to watch stuff much easier to binge when I have time. It also works out for TCT because youtube's system rewards reliable upload schedules, its a win win!

  • @Deditzy.
    @Deditzy. 7 лет назад

    I noticed that the poison wasn't getting eaten by the last vehicle, however since the poison neither decayed nor was it being removed after a time we could be looking at a scenario where a large amount of poison exists making it hard for even the best vehicles to survive.

  • @RM-lw2qi
    @RM-lw2qi 7 лет назад +2

    Thank you for all your videos! I really wish you would make a video about shaders, I can't find any that gives a good explanation from a Processing point of view.

  • @IbakonFerba
    @IbakonFerba 7 лет назад +2

    I noticed that some of the vehicles are eating poison and it has no effect on them. The reason is probably that you never restricted the health, so they have so much food that the health is way more than 1, so even the -0.5 of the poison don't bring it back under 1 again

    • @IbakonFerba
      @IbakonFerba 7 лет назад

      Also this heavily affects their lifetime

    • @TheCodingTrain
      @TheCodingTrain  7 лет назад +1

      Yes, it would interesting to see how capping their health affects the evolution.

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

    I loved "Poision percepton"

  • @MrHuno92
    @MrHuno92 7 лет назад +3

    YEAH, daily dose of the coding train arrived, choo choo mothercoder

  • @MilanMilan0000
    @MilanMilan0000 7 лет назад +1

    Amazing video as always! I got a suggestion: Make a chat bot that talks like a human and learns from your conversations

  • @wouter11234
    @wouter11234 7 лет назад

    The last one alive was sort of immune for the poison because it's perception for the poison was so low that it doesn't even see it and thus doesn't eat it. Pretty interesting

  • @tangerian319
    @tangerian319 7 лет назад

    I wish I grabbed this video live, because DNA should have simply have been an object itself to better organise everything without commenting the hell out of everything

  • @MrCmon113
    @MrCmon113 6 лет назад

    It's so repelled by the poison on the other side of the screen that it cannot eat the food right next to it. Sounds like anxiety disorder.

  • @FallGuy1078
    @FallGuy1078 7 лет назад

    could you do a coding challenge on The pendulus thing I think that would be very cool

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

    hey but what happens if there is no food/poison in it's perception? it gives an error

  • @markjordan7800
    @markjordan7800 7 лет назад

    I love this guy ;)

  • @jcoucelanga4373
    @jcoucelanga4373 7 лет назад

    I love how the mother eats the food of the newborn cells killing them by starvation

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

    I tried to click to the p5.js sketch to try to implement the evolotion myself, by when it opened the final version was already there :(
    does anyone have a backup ??

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

    Imagine Dan H being god giving a presentation to his 5th dimensional being colleagues on how he created humans. Like dna dna dna dna lets go add two more!

  • @enriquenelson7184
    @enriquenelson7184 5 лет назад

    Can anyone help I have an error where at the beginning there are a lot of vehicles just flying off of the screen?

  • @krystianzawadzki975
    @krystianzawadzki975 7 лет назад

    Oh wow, I didn't notice that there were unpublished videos

  • @kosmic000
    @kosmic000 6 лет назад

    this is art by using code

  • @martlesmartlesmartles
    @martlesmartlesmartles 7 лет назад

    Can you do a video on p5.play?

  • @TheDarkOLeo
    @TheDarkOLeo 7 лет назад

    I've coded along and there is this one guy that has survived for like 10 Minutes now.
    I've named him jerry.
    I don't want to refresh the page because I got attached.

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

      You can actually serialize that agent and save as binary data for later use.

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

    neat! i really like the avoid edges thing. added that to my "Boids" project. using the stuff you show me here. lovin it. i'm getting a strange behaviour ... the boids like the bottom of the canvas! I want to add one or two more buttons to the simulation, but you can see it in action here at my self-hosted website: night-stand.ca/boids/index.html
    do the boids just wanna turn one direction over another (clockwise over counter-clockwise)?
    PS: If you check out my boids, you can press 1, 2 or 3 to change the speed of the boids (those are the buttons i want to add to the sim)

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

    ugh i wanna do vr but i dont have windows

  • @kumareshr5975
    @kumareshr5975 7 лет назад

    Hi I saw your series It's awesome but we need some stufss like virtual reality means mainly on webVR like A-Frame can u please do these series?

  • @wimsmets4286
    @wimsmets4286 5 лет назад

    Please use proper variable names. "d" is not a proper variable name. Nobody, except you, knows what it is. I'm triggered. lol