C++ Ants Simulation 4, Colony

  Рет қаралды 286,679

Pezzza's Work

Pezzza's Work

3 жыл бұрын

Colony now uses food to create new ants and expand.
Github github.com/johnBuffer/AntSimu...
Music used • Stay Home #17

Пікірлер: 287
@SebastianLague
@SebastianLague 3 жыл бұрын
Really cool to see you taking this even further. It's looking awesome!
@devsauce
@devsauce 3 жыл бұрын
Thanks for sharing link to this channel in one of your videos
@nikitademodov3446
@nikitademodov3446 3 жыл бұрын
Didn't think you'd know Pezza, small world.
@PezzzasWork
@PezzzasWork 3 жыл бұрын
Thank you :D
@ariseyhun2085
@ariseyhun2085 3 жыл бұрын
I'm looking forward to the shaders tutorial @Sebastian Lague :)
@Sciencedoneright
@Sciencedoneright 3 жыл бұрын
Hey seb
@Psychx_
@Psychx_ 3 жыл бұрын
"Fog of war"… What's next - "Age of antpires?" Great work!!
@swift_goose
@swift_goose Жыл бұрын
Underrated comment
@dandymcgee
@dandymcgee 3 жыл бұрын
If this were 1999, I would ask how to make this my screensaver.
@veggiet2009
@veggiet2009 3 жыл бұрын
Why can't we bring screensavers like this back?
@KennethHartsell
@KennethHartsell 3 жыл бұрын
If this were today I would ask how to make this my screensaver.
@elFulberto
@elFulberto 3 жыл бұрын
@@KennethHartsell what a shame it isn't...
@shakisyaboi991
@shakisyaboi991 3 жыл бұрын
lol
@duzinsan7330
@duzinsan7330 3 жыл бұрын
When the population of ants increases too much, some groups leave the main center and nest elsewhere. Over time, these ants differentiate and even become enemies with the original colony. It would be nice if you add this situation to your software.
@TreeFrogOnATree
@TreeFrogOnATree 3 жыл бұрын
ant life is brutal yo
@iamuss76
@iamuss76 3 жыл бұрын
Cold War
@ytivarg5371
@ytivarg5371 3 жыл бұрын
I thought something similar too. Opposing colonies would be a great next step. Also delegating different jobs for the ants
@All_Natural_Soda
@All_Natural_Soda 3 жыл бұрын
That’s unrealistic, colony ants stick together forever. He can just have a whole other colony that could be an enemy.
@tissuepaper9962
@tissuepaper9962 3 жыл бұрын
@@All_Natural_Soda I think ants can swarm the same way bees swarm, so I think you're wrong about them being in the same colony forever. How would new colonies be created in the first place?
@kuwertzel8938
@kuwertzel8938 3 жыл бұрын
Some ideas that just came to my mind: - Procedural maps for the ants to explore - Different types of ants, (workers, fighters, queen etc.) - Different colonies somehow competing (for food etc.) - Collision of ants, so that there could be jams at busy junctions
@dswonderchild
@dswonderchild 3 жыл бұрын
genius
@Reloecc
@Reloecc 2 жыл бұрын
Ants do not collide or jam really.. they just walk over themself..
@kuwertzel8938
@kuwertzel8938 2 жыл бұрын
@@Reloecc Fair enough^^ Maybe they should just slow down a bit in dense areas
@waffle8364
@waffle8364 2 ай бұрын
sounds like Sim Ant. I'm on bored with it!
@waffle8364
@waffle8364 2 ай бұрын
​@kuwertzel8938 this actually does happen cause they also have a chance to "shake hands"
@Wizarth
@Wizarth 3 жыл бұрын
I'm always impressed at just how effective random walking is at exploring spaces, and the random variation on following the return path causes optimization.
@angrywolfjr7164
@angrywolfjr7164 3 жыл бұрын
let's go my favorite series, i wanna make this one day so bad
@LouisHollobon
@LouisHollobon 3 жыл бұрын
This would be so cool as a screensaver. Watching the ants explore.
@nak_attak
@nak_attak 3 жыл бұрын
exactly what i was thinking
@spoonerismstuff
@spoonerismstuff 3 жыл бұрын
It’s all I’m think about now
@terencehill1778
@terencehill1778 3 жыл бұрын
Yesssssss
@davidgustavsson4000
@davidgustavsson4000 3 жыл бұрын
It would be a pretty bad screensaver, since parts of it are basically constantly lit up. Not that anyone uses CRT monitors anymore, but if you are to have a screensaver it should be effective.
@dairop3220
@dairop3220 2 жыл бұрын
@@davidgustavsson4000 Well some screensavers implemented by microsoft aren't really saving anything so they are probably here just to make some pretty animations :)
@lennytriem1942
@lennytriem1942 3 жыл бұрын
Yessssssssss I absolutely love these and this is crazy seeing another one came out 2 minutes ago! I love your work so much, thank you so much for posting such interesting content!!!!!
@nikitademodov3446
@nikitademodov3446 3 жыл бұрын
I found you when you posted the first Ants Simulation. So glad I did -- this series is awesome!
@bananaknox3861
@bananaknox3861 Жыл бұрын
When the ants are started, they look like a sun supernova and start grabbing food with those paths, its very satisfying
@qgamer2266
@qgamer2266 3 жыл бұрын
Wow, the ant playing a real time strategy game with fog of war 😂👍 Really love your videos!
@terencehill1778
@terencehill1778 3 жыл бұрын
Mate, your work is AWESOME. Pleasepleasepleaseplease make either a really long video, or a playlist that is hundreds of videos long. Make it anything...I just want to throw it on in the background and let it run ❤❤❤ Beautiful to watch.
@kuwertzel8938
@kuwertzel8938 3 жыл бұрын
ooh, next up: procedural ant world generation!
@terencehill1778
@terencehill1778 3 жыл бұрын
@@kuwertzel8938 I like the sound of THAT ❤
@avocadospicedlatte1142
@avocadospicedlatte1142 3 жыл бұрын
Holy crap dude! you just keep going with this and i love it! your one of my favorite c++ youtubers! keep it up!
@megamasterblogs
@megamasterblogs 3 жыл бұрын
Amazing to see the progress you have been making in this series. This took great, this has inspired me to try it my self (I am still learning)
@solanofelicio
@solanofelicio 3 жыл бұрын
Your videos keep getting cooler. Keep up!
@turdle2767
@turdle2767 9 ай бұрын
Huge buff for the min maxers in these patch notes. "No food markers" is huge
@Jacker_Deluxe
@Jacker_Deluxe 3 жыл бұрын
I really like the way these simulations expand in complexity. It's a great format^^ :D
@jalico6860
@jalico6860 3 жыл бұрын
Love seeing these get more creative and I'm curious about when you start adding in the soldier ants and creating hazards that the colony would fight off
@epicfailtackular
@epicfailtackular 3 жыл бұрын
100% the best outros on KZbin right now.
@joseph-eleazarduhot2030
@joseph-eleazarduhot2030 3 жыл бұрын
Amazing improvements !
@SmallKatas
@SmallKatas 3 жыл бұрын
I love the progression of this series!
@SheWhoExists
@SheWhoExists 3 жыл бұрын
Gorgeous work once again! I think a nice change might be making the fog of war visualization transparent so that we can see what the map looks like even though the ants can't
@cake8705
@cake8705 3 жыл бұрын
I live to see your progress!
@andrewkinsey8754
@andrewkinsey8754 2 жыл бұрын
Love this, this is genius level programming you have captured emergence in a way I've never seen before
@stevesajeev6477
@stevesajeev6477 3 жыл бұрын
Wow.. your content is becoming awesome.... And awesome... I Love watching it.... Nice editing and graph features...
@kenny-kvibe
@kenny-kvibe 3 жыл бұрын
I love it, it's getting better and better every time!
@depatrify
@depatrify 3 жыл бұрын
Excellent. Very cool that you've taken it this far with just hard coded rules.
@rockm9222
@rockm9222 3 жыл бұрын
Can't wait to see you implement enemies! This is going along great!
@vadeemrerogi
@vadeemrerogi 2 жыл бұрын
This honestly would be one of those games people wound buy to experiment with the ants. I can see this turning into a good sandbox games XD
@qwertyuiop2161
@qwertyuiop2161 3 жыл бұрын
thanks for a part 4 :) look forward to a part 5 if there will be.
@lachlangray8120
@lachlangray8120 3 жыл бұрын
This is the coolest thing ever!!! Thankful for the KZbin algorithm. This must have been so much fun to build.
@darkfrei2
@darkfrei2 3 жыл бұрын
I am glad that the "o" was not closed and ants can get food from it.
@cheydinal5401
@cheydinal5401 3 жыл бұрын
That's really cool, thanks! Now allow them to starve if they don't have enough food, with each ant using up a certain amount of food
@Sian_hi
@Sian_hi Жыл бұрын
I don’t regret clicking on this video on my recommendation page
@insignificantduck313
@insignificantduck313 2 жыл бұрын
This video was made on my birthday and I couldn't be happier.
@caseymcvay4727
@caseymcvay4727 3 жыл бұрын
are you planning on eventually including competitive colonies?
@PezzzasWork
@PezzzasWork 3 жыл бұрын
I am thinking about it, it will require some work :)
@caseymcvay4727
@caseymcvay4727 3 жыл бұрын
@@PezzzasWork I'd Imagine. I haven't a clue how you would. maybe some kind of rng gen for combat and turn the looser into food? idk
@IsaacHisey
@IsaacHisey 3 жыл бұрын
@@caseymcvay4727 Let also please implement RNG for ant love. Colony crossed lovers must face the wrath of their colonies and risk all their food for each other XD
@caseymcvay4727
@caseymcvay4727 3 жыл бұрын
@@IsaacHisey sounds gay, im in
@MarekKnapek
@MarekKnapek 3 жыл бұрын
And each colony having different behavior / brain / marker strength. Then let them fight for resources against each other. Slightly modifying brains each round. Genetic programming!
@jacobmosovich
@jacobmosovich 2 жыл бұрын
I want a phone app of this. It feels like it would be an amazing eye candy game to just simulate and create your own fun map designs with.
@brajki6364
@brajki6364 3 жыл бұрын
A legendary channel that is cooler than every other.
@TheEightshot
@TheEightshot 3 жыл бұрын
Okay so now, create the maze procedurally, add food at random intervals in random places, make the maze infinitely scalable and run 1x speed. Best screen saver EVER. personal virtual ant farm.
@tobenamed610
@tobenamed610 3 жыл бұрын
Maybe next time instead of a map already made for them you can experiment with making them dig their own tunnels? It'd be cool to see how they form, especially if you add rules to how they dig and get a bunch of really crazy results. Maybe eventually we could get into different types of ants with their own rules and program some kind of nest behavior? There's a lot you can do here!
@jatinsaini7790
@jatinsaini7790 3 жыл бұрын
As always, amazing improvement!
@snailetiquette
@snailetiquette 2 жыл бұрын
Watching the colony get it's act together was really cool
@zo0ot404
@zo0ot404 3 жыл бұрын
Very cool, cant wait to see what you do next :)
@n0b0dy15
@n0b0dy15 2 жыл бұрын
I LOVE ants and now i love your channel +1 subscriber
@nak_attak
@nak_attak 3 жыл бұрын
This is genuinly amazing
@aapjew18
@aapjew18 3 жыл бұрын
I'm absolutely loving these. So cool
@florencemukagoga8513
@florencemukagoga8513 Жыл бұрын
You always do great videos
@legitgopnik8431
@legitgopnik8431 3 жыл бұрын
I love this series! What if you coded in two colonies racing against each other? Maybe even fighting and killing each other? It'd be cool to see that as a long-term simulation, maybe with renewable food sources 🤔
@wallabra
@wallabra 3 жыл бұрын
Heyy! This is starting to look less like an experiment (a fun one, nonetheless), and gradually much more like something that could easily be turned into a game. As a child, I once tried to do something even mildly akin to SimAnt. It was one of my first ventures into the world of C and C++. Of course, I but miserably failed, as I had bit more than I could chew, and abandoned the project, left to bitrot on GitHub. Nowadays, I might just be able to, and this video is exciting inspiration to do so! I'm working on a PR to add IPv6 support to Chocolate Doom, but once I'm done with that I'm excited to try a new thing like this. Thank you Pezza! :D
@NikoKun
@NikoKun 3 жыл бұрын
Wow.. This just keeps getting better and better! Love watching it solve the maze! ;) I've actually been working on my own ant pheromone simulation, written in python.. And it's fun, and sorta works, but nowhere near as function as yours.. I think my rules and evap time need adjusting, as well as wall avoidance.. heh
@DeepRafterGaming
@DeepRafterGaming 3 жыл бұрын
Amazing... i have nothing more to add, great progress, gj.
@matteomartins6007
@matteomartins6007 3 жыл бұрын
Im mezmerized, this is amazing. Good job :)
@sinnvollerkommentar263
@sinnvollerkommentar263 3 жыл бұрын
Great improvements. Please Keep doing more
@Flobbled
@Flobbled 3 жыл бұрын
This is really cool! I have an idea for another new pheromone: "food too far" It gets released when an ant has found food but takes too long to come home, so it eats the food, restoring (some?) lifetime. It could be used to determine where an new colony should be started, if that's something you also would wanna implement. Alternatively the ant could just die and drop the food to be found by another ant.
@spenceryascolt8038
@spenceryascolt8038 3 жыл бұрын
LOVE your videos!
@fakiirification
@fakiirification 2 жыл бұрын
all thats really missing is the ability to dig new tunnels and create new food stores/brood chambers. this could be a fun rabbit hole to explore.
@thedouble1269
@thedouble1269 10 ай бұрын
dude different types of ants like scouts and workers or smth would be really cool
@mark_makes
@mark_makes 3 жыл бұрын
This is amazing!! My suggestion for what to do next is to look at how to simulate within the colony itself (breeding and food storage)
@Daro-Wolfe
@Daro-Wolfe 3 жыл бұрын
Well all the ants have one mother, so
@mark_makes
@mark_makes 3 жыл бұрын
@@Daro-Wolfe exactly! It could be very interesting to simulate larvae placement and food storage, or even look at the queen's production of winged ants to create new colonies. Lots of possibilities 🙂
@danielsuveges2895
@danielsuveges2895 3 жыл бұрын
Oh boy, you put some time into this.
@dazcar2203
@dazcar2203 2 жыл бұрын
i guess the next step would be to make randomly spawning clumps of food
@abdulroufsiddhu6820
@abdulroufsiddhu6820 3 жыл бұрын
Love ur work
@stefanobertolotti2555
@stefanobertolotti2555 3 жыл бұрын
Great job, Pezzza!
@astrodoc1
@astrodoc1 3 жыл бұрын
Next you should add a 2nd colony and have them fight for the resources
@UmzGames
@UmzGames 3 жыл бұрын
Love seeing this videos- is this slowly becoming a game? Would love to see that.
@omg33ky
@omg33ky 3 жыл бұрын
Very nice. Can we now get into that that the population would go down if not enough food is found to feed all of them? I love the series btw
@guyard6098
@guyard6098 3 жыл бұрын
Maybe add an incentive for ants to explore areas in the fog of war. Also you can mark explored areas with no food as non-interesting, that way ants won't waste time going to places they already been to. And lastly, maybe add other types of ants for specializations (like explorer, gatherer etc...). Really cool and fun to watch simulation!
@desocrate
@desocrate 3 жыл бұрын
Colonization to spread the hive would be amazing
@TheStrangeRandomness
@TheStrangeRandomness 3 жыл бұрын
I would love to see wars between different colonies of ants competing for food/territory
@ibuildblasters8118
@ibuildblasters8118 2 жыл бұрын
this would be an incredible screensaver
@tribunealpha1059
@tribunealpha1059 3 жыл бұрын
Fascinating. Everything about this is interesting and somewhat hypnotic. What else do you plan on implementating?
@hexagon8899
@hexagon8899 3 жыл бұрын
thanks for making it
@rot_studios
@rot_studios 3 жыл бұрын
I see a fun little simulation game being developed here! :D
@typicalhog
@typicalhog 3 жыл бұрын
This is amazing!
@TommyLikeTom
@TommyLikeTom Жыл бұрын
We're very similar. I have a ants build of a unity game I made many years ago on my PC. I actually kind of wish now that I did more with it. I was trying to make it 3D so ants could walk on walls. I got it working in 2d to the level you did on your first approach. This was about 5 years ago
@Roter_Wolf
@Roter_Wolf 3 жыл бұрын
Great work!
@aurielklasovsky1435
@aurielklasovsky1435 3 жыл бұрын
I love this, its like 50% of a cool strategy game by now. Just need to think of something fun for a player to do
@NTC
@NTC 3 жыл бұрын
awesome work!
@alexislouis2320
@alexislouis2320 3 жыл бұрын
Mesmerizing work ❤️
@juuliano1383
@juuliano1383 2 жыл бұрын
It would be cool to see this implemented into a strategy game or learning tool
@wormjuice7772
@wormjuice7772 3 жыл бұрын
What is that noise? No no no.. Those are ants being hard at work!
@clashthegamer4873
@clashthegamer4873 3 жыл бұрын
There should be special areas which regularly spawns some food, because the logical conclusion of what happens to the colony in these simulations after food runs out is that they all die, so a food source should have a special color of itself so ants know to occasionally check it (say every few trips or so)
@Donski.02
@Donski.02 3 жыл бұрын
I subbed for this
@DaveMackenzie
@DaveMackenzie 3 жыл бұрын
There IS a game in there. Next step: competing colonies?
@Deathlupus
@Deathlupus Жыл бұрын
That ant on 3:50 must be the Christopher Columbus of ants.
@memorabiliatemporarium2747
@memorabiliatemporarium2747 3 жыл бұрын
I wonder how they'd behave if they had to burrow their paths like real ants. Competing colonies would also be interesting. Really fun stuff.
@simsonsj
@simsonsj 3 жыл бұрын
This is so cool! what is your longterm plans? game?
@The_Epicness9000
@The_Epicness9000 2 жыл бұрын
Infinite food spawner? Portals? A full map of food?
@jonathanhemmi6445
@jonathanhemmi6445 2 жыл бұрын
hey pezza i downloaded the simulation from your github. how do you make the more complex wall shapes and larges batches of food? as far as i can see in the version on github only single pixels can be added. Thanks for the amazing simulation!!
@62koalalover
@62koalalover 3 жыл бұрын
amazing video
@akitaxzero
@akitaxzero 3 жыл бұрын
it would be cool if you get them to dig for food. Like a material that an ant can randomly decide to "eat" through, but it's not food. I wonder what kind of tunnels they would make.
@mattschoolfield8932
@mattschoolfield8932 3 жыл бұрын
Very impressive!
@mightygeneral4359
@mightygeneral4359 3 жыл бұрын
I think it might be cool if you start introducing rivaling ant colonies
@sayethwe8683
@sayethwe8683 3 жыл бұрын
Do foraging ants have any reaction to idle trail/home signals? because personally, if I was out foraging, an easy way I would try to find new places unvisited before would just be to head directly away from the greatest concentration of trail I could sense.
@judeuddoh6618
@judeuddoh6618 2 жыл бұрын
beautiful.
@underslash898
@underslash898 3 жыл бұрын
Loving this series :D
@veggiet2009
@veggiet2009 3 жыл бұрын
Seriously that's awesome
@SaltJackalope
@SaltJackalope 3 жыл бұрын
Wow, that was awesome
@CreamPolo
@CreamPolo Жыл бұрын
Such fun to play with :)
@ShunanoriNisinomiya
@ShunanoriNisinomiya Жыл бұрын
I've learned that ants that seem meaningless and just wandering around can be very helpful. The same can be said for human society.
C++ Ants Simulation 5, Ants Fight
9:24
Pezzza's Work
Рет қаралды 1 МЛН
How to train simple AIs
12:59
Pezzza's Work
Рет қаралды 40 М.
Monster dropped gummy bear 👻🤣 #shorts
00:45
Yoeslan
Рет қаралды 13 МЛН
I PEELED OFF THE CARDBOARD WATERMELON!#asmr
00:56
HAYATAKU はやたく
Рет қаралды 33 МЛН
ISSEI funny story😂😂😂Strange World | Magic Lips💋
00:36
ISSEI / いっせい
Рет қаралды 130 МЛН
Artificial Life. The battle of clans
19:34
Simulife Hub
Рет қаралды 447 М.
Real time Fire Simulation
7:23
Pezzza's Work
Рет қаралды 153 М.
C++ vs Rust: which is faster?
21:15
fasterthanlime
Рет қаралды 365 М.
C++ Ants Simulation 1, First approach
4:37
Pezzza's Work
Рет қаралды 613 М.
Space War - Marble Game
19:32
Lost Marbles 3D
Рет қаралды 179 М.
C++ Ants Simulation 2, Path optimization
6:01
Pezzza's Work
Рет қаралды 293 М.
AI Learns to Outrun Police Officers
11:44
cozmouz
Рет қаралды 552 М.
Much bigger simulation, AIs learn Phalanx
29:13
Pezzza's Work
Рет қаралды 2,6 МЛН
Turning bugs into Art
7:43
Pezzza's Work
Рет қаралды 193 М.
Вы поможете украсть ваш iPhone
0:56
Romancev768
Рет қаралды 595 М.
Apple. 10 Интересных Фактов
24:26
Dameoz
Рет қаралды 69 М.
Индуктивность и дроссель.
1:00
Hi Dev! – Электроника
Рет қаралды 931 М.
НЕ ПОКУПАЙ iPad Pro
13:46
itpedia
Рет қаралды 276 М.