Coding Challenge #69: Evolutionary Steering Behaviors - Part 2

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

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

  • @nahueljo
    @nahueljo 7 лет назад +34

    I'll never get tired of your videos! This series is super interesting :) Thank you!

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

      Glad to hear, thank you!

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

      The Coding Train thank you very much. your tutorials are fantastic. I am beginner in JavaScript and if you can make a video to show where to begin and which tutorials I must watch first to understand well your code challenges because I feel lost in your channel and I don't know where to begin again thank you very much :)

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

    @4:40 Yes, always go for separation of concerns. Keep functions lean with distinct functionality

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

    I've binge watched all of your videos. Thank you for the great content!

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

    that is fun, 17min in, i love how smart some of them turn out , they'll nudge in and in between careful like a cat and get all the green ones lol

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

    I am an exchange student in New York from Norway, and will be here until end of May. I hope to visit you just to say "Hi". I really enjoy your videos and I am proud of all the progress you have achieved!

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

    16:40 going down by a negative number is the same as going up by a positive one.

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

    I thought it'd have been impossible to have the satisfaction of hearing you saying a bad word, but finally you did ahahah 2:30

  • @CJ-pd7xg
    @CJ-pd7xg 7 лет назад

    This channel should be called the Dopamine Train because I'm literally always happier after watching it.

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

      Carl Jones I thought it was called the Dopamine train because you have to take Adderall to ride.

  • @griffonthomas7869
    @griffonthomas7869 7 лет назад +36

    21:07 Every pet I've ever had.

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

      Griffon Thomas HAHAHAHAHAHA

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

    ur a wonderful person to be around such energy and dedication to teaching

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

    0:04 "That's what my life has become" adding a little bit of drama ))

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

    you actually made me make another project similar to this one, in processing, i was inspired from the first video
    in my project there are 2 types of creatures , green (who can eat only green food) and red (can eat smaller creatures and red food),really want to see what your project will look like when finished

  • @samp-w7439
    @samp-w7439 6 лет назад +1

    Your videos are amazing. You should make a Rubix cube solver series.

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

    Thank you for your commitment to the Processing Foundation. Your support is essential to the future of our software, initiatives, and advocacy.
    I think this line is ment for you Dan, not for me

  • @dr.unventor
    @dr.unventor 7 лет назад

    Hey! @ 2:51 the car is rodof!

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

    So I noticed that you have a function inside another function. Wouldn't it be better to use `=>` rather than an inner function, since `this` might point to the inner function. Correct me if I'm wrong someone

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

    I've trying to download p5.js but I can't. I have been trying for days and it just isn't working. I have tried everything. I'm also on PC. It would be so much help if you could make a video on how to download p5.js on PC! Thanks. Keep up the great work!

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

      Look at this codepen example: codepen.io/p5js/pen/gAury
      The html file should be called index.html.
      Inside index.html's body tag, you will need to include sketch.js (

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

    Soooo when is the P vs NP coding challenge coming?

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

    19:35 best part hahahaha

  • @PradeepKumar-vf2lf
    @PradeepKumar-vf2lf 7 лет назад

    Sir how will I create a canvas with origin is at the centre of the canvas not at top left corner

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

      // Add this inside your draw function, before you draw anything else.
      // Let me know if you have any issues... Good luck!
      translate(width/2, height/2);

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

    this is gertting crazzy..haha but I love it

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

    can you suggest me which programming language should i learn first... i am very interested in programming....

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

      I think python, java or javascript are the easiest programming languages for beginners.

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

      I recommend python3. You will never run out of possibilities. If you're more attracted to web developpement, html/css/javascript are the base languages you need.

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

      HTML

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

    Did I miss something ? Why is the vehicle losing health without eating a poison ?

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

      This is just an arbitrary decision I made. Each frame a vehicle loses a little bit of health so if it never eats any food at all, it will evtentually die. Eating poison simply speeds up the process.

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

      Oh, it actually makes sense xD Thanks for the answer !

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

    dan,how can i remove any vector from vector array in proccesing?

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

      I suggest you use ArrayList with PVectors not simple arrays

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

      You can do
      ArrayList myVectorList = new ArrayList();
      myVectorList.remove(index);

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

      ok thx :) :)

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

    in which software you perform code??
    is there any use of grapics??

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

      PsyNeur do you by chance know his UI and symtax themes?

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

      fdggg asdg no sorry. it looks like atom dark but I could be wrong

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

    20:30, He finally cursed :D (at least I think so)

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

    22:05 *hype intensifies*

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

    Replicate/Create A Piano Roll of FL Studio using C++ or JS

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

    10:50 spilling water

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

    DNA could be made using binary numbers, that way one can simply generate an arbitrary number which tells about the object behaviour, for example:
    this.dna = 156; // 10011100
    // first four bytes represent a number which is attraction to food
    // another four bytes represent a number which is attraction to poison
    this.attractionToFood = ((this.dna >> 4) & 0x0F) / 100; // pushes bits to the right 4 bits, then picks 4 last bits (0x0F = 16, 16 is 1111 in binary, 1001 & 1111 = 1001, it takes 10011100, pushes bits until it's 00001001 and then ands whole thing with 00001111)
    this.attractionToPoison = (this.dna & 0x0F) / 100; // no need to push, just take last 4 bits, computer understands the number and now you have percentages, all you had to do was generate one arbitrary number and understand trivial binary operators, in this case it takes 10011100 & 00001111 => 1100, ignoring bits at the front (this is what bitmasking is)
    It's not necessary but personally it's more DNA-like to me, just that the DNA is of a machine, not a real organism :)

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

    Finally! :D

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

    U r amazing

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

    This part is less likes because ITS really hard to chain each functions together and i split two days to follow and understand

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

    Nice haircut

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

    code a rubiks cube timer.

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

      Thats pretty easy actually. He made a tutorial on a javascript timer, just make it count from 0 upwards and start & stop when spacebar is pressed

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

    I like how the likes are 619 and i want to leave it that way :(

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

    you should make Minecraft in a simple coding language like qb64 or batch I have a simple video on my channel if you want to watch it

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

    2nd

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

    I have a question about the Atom text editor, and its about how you get out of the brackets so fast, i found some code online but it is not like in Sublime Text, when you are in brackets and you press like tab to get out and code on