C++ Ants Simulation 5, Ants Fight

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

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

  • @PezzzasWork
    @PezzzasWork  3 года назад +203

    Published a release for windows here (with the code) github.com/johnBuffer/AntSimulator/releases/tag/v3.1

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

      1000 + 1000 + 1000 + 1000 = 4000

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

      it says its not good

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

      The release is fullscreen but seemingly only 1080p, which messes with my desktop since I have a 1440p monitor. Is it possible to have it run in a window, or switch to the native resolution? I'd rather not mess with the source code myself, as I've had little luck compiling C-related code for whatever reason.

    • @PezzzasWork
      @PezzzasWork  3 года назад +13

      @@shuriken188 I've just updated the release link to add a conf file alongside the executable with configurable window size and mode

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

      @@PezzzasWork Awesome

  • @Joseph-kd9tx
    @Joseph-kd9tx 3 года назад +1668

    I have an idea for a possible part 6: the ability for colonies to branch out and create more queens and therefore other colonies.
    This will lay the foundations of "colony reproduction", a totally other aspect to ants.
    I would also like to add the idea of giving the ability for corpses to be food, suggested by notus42 to give better reward for war

    • @Zedryx69
      @Zedryx69 3 года назад +90

      And sometimes they either start to fight, or start to form 'supercolonies', which are colonies with multiple queens.

    • @vulpeszerda39
      @vulpeszerda39 3 года назад +8

      YES

    • @aurielklasovsky1435
      @aurielklasovsky1435 3 года назад +58

      @@Zedryx69 in nature, this behavior is dependent on species. Most ants fight with child colonize, some ants form global colonize who rage war over several continents.

    • @notus42
      @notus42 3 года назад +31

      Aother small possible addition: Corpses become food.

    • @123TeeMee
      @123TeeMee 3 года назад +6

      @@Zedryx69 Then you have team competitions not just FFAs

  • @UmzGames
    @UmzGames 3 года назад +263

    Project is really going great- this was a great way to implement the soldier ants. Shows that perfect balance required between gathering resources and destroying the nearby colonies. Seems like location plays a big factor.

    • @MostScaryCat
      @MostScaryCat 3 года назад +25

      Yeah, from what i saw, there are a few factors in play, they are:
      1. How close are the nearest resource points?
      2. How many are there?
      3. Are there any bordering colonies?
      4. Do they have access to more resource points than you do?
      5. Are you close to the middle / have a clear path?
      There are probably more, but in my opinion these are quite important, if not the most important.

    • @UmzGames
      @UmzGames 3 года назад +5

      @@MostScaryCat Yea, I noticed that proximity to more resources than the closest colony is a very strong advantage.
      Didn't think about the clear path but looking again it does make a significant difference.

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

      @@MostScaryCat I found that those who branched out and discovered new resource piles earlier tended to win, especially those that established strong connection lines by the time fighting begins

  • @stefanobertolotti2555
    @stefanobertolotti2555 3 года назад +575

    Finally, I was hoping for the project to evolve in this way, great job.

    • @pvic6959
      @pvic6959 3 года назад +7

      hehe "evolve"

  • @stefanobertolotti2555
    @stefanobertolotti2555 3 года назад +622

    From my experience I see that there are 3 types of ants: workers, soldiers and explorers. I wonder how will it be if you add this third type, they should be faster and release a signal of higher priority(almost the only one) for the correct path.

    • @mementomori7160
      @mementomori7160 3 года назад +11

      That's a good idea

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

      @@mementomori7160 hmmm

    • @CosmicCrimson
      @CosmicCrimson 3 года назад +17

      There is just workers and soldiers, it’s just that in this simulation ants are able to follow a path but have different genes compared to everyone else, making them take unique paths that happen to make some ants go off-course and end up finding other resources or areas.

    • @sebasfavaron
      @sebasfavaron 3 года назад +3

      this in my opinion would reduce the main advantage of the ant algorithm which is resiliency. The nice thing about only one priority is that the evolution of the colony along with the environment dictates where they go. Prioirties sort of arise from their interaction

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

      @@grantinlow2889 increased birth rate?

  • @mikenwms2011
    @mikenwms2011 3 года назад +305

    This brings me such a childish joy. Thanks for sharing this project!

  • @pedromiranda5448
    @pedromiranda5448 3 года назад +574

    Best notification I've received in a while

  • @DavidTriphon
    @DavidTriphon 3 года назад +65

    As much as I love the RGB color space, when choosing colors for teams, I highly recommend using the YUV color space instead. With a constant Y value, all colors will be the same brightness. In your current video, blue ants are much much harder to see than yellow ants. If you used the YUV then you would be able to easily choose different distinguishable colors while keeping all teams equally visible.

    • @PezzzasWork
      @PezzzasWork  3 года назад +25

      Thank you for this remark!

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

      @@PezzzasWork I'm glad to be of assistance! Keep up the amazing work!

  • @nak_attak
    @nak_attak 3 года назад +152

    This would make for an amazing mobile sandbox game. Just a simple UI where you can tab to place different assets such as food, walls, or different ant spawns and the ability to speed up or slow down time would make for a really simple but fun game. You could even put it for a small price to make some profit!
    Edit: a game similar to what I described above is called "Robot Colony"

    • @blazyhell4553
      @blazyhell4553 3 года назад +9

      Since the project is open source, I guess someone can port it to android.

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

      theres a game like it lol, but you can play it yourself and control things. mobile and online game

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

      @@miniiogaming6954 Name please

    • @Super-il9nb
      @Super-il9nb 3 года назад

      @@miniiogaming6954 name please

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

      @@onmomentum the only game I can think of is "Pocket Ants". Played it for a while, quite fun. You actually play as an "ant commander", so it's quite different from this but quite the same I guess

  • @valet_noir
    @valet_noir 3 года назад +61

    "thanks for wathing" 8:53 xD
    Amazing vid, it is incredible to see how surprising are the outputs are differents depending on the map and the number of enemy colonies.
    I wonder what are the perfect parameters for a colony to position itself well in relation to its environment

  • @veradin6540
    @veradin6540 3 года назад +75

    Now this is the top down strategy game I've been dreaming of.

    • @Bloodlyshiva
      @Bloodlyshiva 3 года назад +3

      With the main question being 'How can I influence this to get the victory?'.

    • @Ionsto
      @Ionsto 3 года назад +9

      ​@@Bloodlyshiva A while back, I wrote something similar to this to run on the GPU, the best ways of implementing player control would be.
      1. Instruction pheromone - allow the player to paint pheremone directly - allowing them to "soft direct" ants at will (to attack other colonies, get a certain resource etc)
      2. Population control, allow the user to dynamically set ant production rates for new nests vs worker ants - kinda boom vs rush style
      3. Tech trees, allow you to improve speed, attack strength, or other stats which costs foods that the ants collect

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

      Lord of the ants it's basically just lord of the Rings but with ants

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

      just play starcraft and choose zerg

  • @thundermill7109
    @thundermill7109 3 года назад +51

    Sounds like it’s going to be a fun one! Love your ant projects keep up the good work.

  • @songworks17
    @songworks17 3 года назад +71

    Great video.
    How about: Dead ants from the same colony could give of a death hormone. Workers who encounter these, will bring the information back to the colony. The more often the colony receives these (in a short timespan?), the higher the change it'll breed a soldiers to combat the threat?

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

      Dead ants to be used as food?

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

      so kinda like people in a way?

    • @alansus586
      @alansus586 3 года назад +9

      @@vaibhavbv3409 I'm not an ant expert but i don't think ants eat dead ants

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

      @@alansus586 they eat dead ant, but not the same colony one

  • @tamarpeer261
    @tamarpeer261 3 года назад +20

    You can compare strategies: one colony will consistently produce fighters, which means less workers but be more prepared once you are attacked. The other colony will only produce fighters when needed.

  • @ZeDlinG67
    @ZeDlinG67 3 года назад +27

    Wow, it is fascinating how this project evolves; not just the ants, the visuals, the UI, controls (I'm assuming)!
    Still, no machineguns on the ants...

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

      hopefully next episode

    • @MostScaryCat
      @MostScaryCat 3 года назад +3

      soon, the workers will have pickaxes and the soldiers will have worker machine guns.

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

      @@MostScaryCat and also soon the spies are going ninja stars and ranged soldiers are going to have shields

  • @frosty7674
    @frosty7674 3 года назад +44

    Next Video: C++ ant simulation, ants take over earth
    Later: C++ ant simulation, ants rule universe
    Little More Later: C++ ant simulation, ants become god

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

      Ant understand how to produce food for them

    • @casidi7178
      @casidi7178 3 года назад +6

      C++ ants create create C++ humans simulation

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

      Ants do photosynthesis

  • @aurielklasovsky1435
    @aurielklasovsky1435 3 года назад +7

    I am loving every single video of yours and this is probably the best follow up video ever.
    To pile on with the suggestions: it seems like positioning is the major factor for ants to win or loose here. How about some variation in the ants stats and priorities? Probably based on some square law plus constant. You can have a little evolution algorithm and tournament, hopefully producing several types of ants to excel at different types of levels.
    Again, love your work. Please keep them coming. Cheers

  • @brendancameron4111
    @brendancameron4111 3 года назад +10

    We've gone from walking to eating to helping to war just like mankind

  • @SunroseStudios
    @SunroseStudios 3 года назад +8

    welp this has now turned into a self-playing realtime strategy game
    love it

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

    I see, the denser food in the middle acts as a decisive resource point. Whomever gain's control of it first has a massive advantage because it guarantees stable population growth, and once they have the larger population they can fight off any attempts from other colonies to take that food. In the three colony battle this allowed the yellow colony to win from a disadvantaged starting position population wise.

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

      Very true through the entire video I saw two main deciders for who wins and that is isolation & least distance to the most amount of food(usually this would be the mid). Although on the fourth blue won because it was able to take hold of some uncontested piles of food by taking out red and it had a pretty short path to the mid.

  • @6Twisted
    @6Twisted 2 года назад +1

    I love how simple instructions when applied on a large scale leads to complex outcomes.

  • @tyler2854
    @tyler2854 3 года назад +3

    Great work so far, I’m loving how this project is turning out!

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

    whoever has clearest access to the most food wins
    the red markers could be used to mark "claimed territory" for each colony

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

    This calls for a competition. Contestants set certain parameters for their colony, like worker/soldier balance, sensitivity to the various pheromones, etc. Then pit them against each other on maps like these.

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

      Yes please! I am hoping different stats will be better at different maps

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

    These videos keep getting more and more interesting. Keep up your amazing work my man

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

    With 3 or more colonies it should be a "capturing colony mechanic" and keep growing ants with its new team

  • @Xelnarash
    @Xelnarash Год назад +1

    unbelivelble what you can do with programming ... everytime its surprises me somehow ... soon i will be able aswell ... well not thos thingis but none the less

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

    Incredible! So excited to see this in my subscriptions list!

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

    an idea I have for the next one is maybe inside the nest activities visualised? like ants storing larva/food, along with maybe expanding nest., another idea is once an ant nest has a certian number of ants in it it will create a new queen that will go out and found a new nest that might(or might not) be allied with the original

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

    I love how in the second round blue and red were relentless on killing each other while yellow was jacking the last of the food and becoming unstoppable.

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

    these are great! It seems the winner is usually the nest spawning with the nearest food blob. I interpret it like those nests increase populations the soonest and population increases search space and coverage density, so the nest gets to make better 'decisions' sooner. Also, and perhaps mostly, the exponential increase in pop

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

      I would agree. The sooner an ant can bring its food back the sooner it can go to collect more. Having closer food means more throughput, which means faster population growth, which translates to more efficient food gathering from farther food sources. A closer starting food source snowballs quite quickly.
      I wonder how the ants would do with chokepoints, infinite food sources, and imbalanced maps. For instance, could a colony with only a single infinite food source outlast a colony with many finite food sources if there's a choke point to defend?

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

      @@Zebo12345678 That's pretty interesting. I think it would also be interesting to see the simulation run against those scenarios, but also the 'latent space' between them.
      So if there is a 1v1 map with a central food source, and I wonder what happens if one nest was further away or if there was an obstacle in the way or if the food had different shapes and cavities... Those scenarios may be interesting but if we call the map a picture and take a geometric 'morph' between the map of the base scenario and a modified scenario and we simulate on each of the maps generated by each step in the morph, that could also yield interesting results.
      Perhaps to watch something like that (in a timely manner) the videos would need to be layered over each other with each iteration using a slight brightness or hue shift or something.
      I just think it would be cool to have an idea of why a scenario plays out a certain way and watch to see if it's possible to determine, as a scenario changes little by little and morphs into the alternate scenario, when a result should change and why.
      Like, if there is a 1v1 open map except for a wall with a tiny gap between competing nests, and one nest has a nearby food source and the other a more distant food source, then if the gap is small enough, it could be difficult to press the advantage of faster growth. Seeing what happens as the gap opens wider each iteration until the advantage could be pressed and trying to predict when such a thing could happen, would be interesting.

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

      @@solerante That's a great idea too. These simulations are kind of addictive, huh?

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

    "Thanks for wathing" 😂 This was fascinating! I just found your channel today really cool simulations! We need more!

  • @kurt445p
    @kurt445p Год назад +2

    your welcome i loved wathing this video

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

    fully one of the best videos on youtube - this would be the king of all flash games with an easily editable environment

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

    This is increeible, good job man, nice to see this kind of project. You are great inspiration!

  • @joseph-eleazarduhot2030
    @joseph-eleazarduhot2030 3 года назад +1

    I've been waiting for this for ages, and i am not disappointed

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

    From what i notice, some soldiers follow to enemy markers when the area is empty. Each time an ant dies the ant that killed it will make “no more enemy markers” which will allow the markers to dissipate faster

  • @awesomeduxe
    @awesomeduxe 3 года назад +3

    For the future: add a music option that can play music depending on the stats of colonies. If rapid decrease in ants, music gets more chase/action like. If increase, more happy music.

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

    When soldiers find enemy workers, they should turn the enemy worker into a food dot. When two soldiers fight the loser should get turned into a food dot. Dying ants should leave a "fear" marker that repels workers of any color.

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

    IRL ants are able to utilize the corpses. We can include this process into the food chain: ant workers drags the dead ants to the hive, which gives them "food material" to born a new ones.
    [sorry for my bad english]

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

    Strong nostalgia for playing SimAnt on my family’s IBM Windows 3.2 back in the day

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

    Part 6 idea terrain, builder ants can use dirt to create walls and bridges over water. water slows ant and potentially kills them. Dirt piles spawn and bridges and walls are destructible. Builder ants use to battle and to water scents to know where to put walls and bridges

  • @xFanth23
    @xFanth23 3 года назад +6

    Could the ants get "energy" from eating another ant-type's nest?

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

      it already seems like destroying another colony is a big advantage when you get access to the resources, that doesn't seem like a super great idea

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

    Wow! Simulations like this have come a super long way since the 80's.

  • @mr.axolotl6356
    @mr.axolotl6356 2 года назад +1

    what type of Pikmin will you fight for?? red, blue or yellow??????

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

    this just shows that in real time strategy games, resources and economy is what wins games.

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

    Really cool how the red ants just found another way to the food in the middle when the blue ants blocked one access point in the first simulation. Extremely basic AI making itself look smarter than it is. Good work on this.

  • @st.michaelthearchangel7774
    @st.michaelthearchangel7774 2 года назад

    The ending was really cool! Looks like whatever the ants en masse grabbed was like wind blowing it away.

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

    Would you ever consider publishing and selling this somehow? The idea of generating maps with food and terrain for ant colonies to expand and fight over seems a reasonably compelling one for an indie game. I've rewatched this like 5 times now, just looking at all aspects of how the ants behave and how they react to their environment and how heavily that determines their success against a now opposing force. Especially interesting was the interaction between food signals from different factions, like how if one side had food signals laid down, past or present, they would draw workers there, often turning the tide in nearby battles against the opposing mainly-soldier force. All in all, super cool simulation, I love your creativity and the simple readability of your sim.

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

      It's open source, you can check the description for a link

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

    I love that at the end you named the chapter "Thanks for wathing" due to your spelling mistake. Made me chuckle a little bit.

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

    Great work, always happy when you upload!

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

    This an absolutely amazing simulation of irl ants, very accurate, though there are a phew things missing to make it nearly perfect. Full applause from me.

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

    The mechanics of this look similar to a Galactic Colonization game I'm currently preparing to make (GDD/Game Design Document right now)- once the documentation is near complete I'll finally start coding it- made a few games with the GDD being in my head and realized that I really need to plan more in advance so that's what I'm doing now.
    Very cool, nice work!

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

    At first I came across this, was like, "yes. I like this." And then binged all the ant stuff that came before. Imma now go look at the rest of your content

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

    I have just found everything that I would ever want in this one channel.

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

    Best notification I got in 2 years of RUclips premium

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

    I think the sound you use in these experiments is always overshadowed. 🎵👍

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

    Wow when I saw this for the first time I thought it is a one time only. Please keep improving this. I’m looking forward to the next one.your awesome

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

    At this rate you'll have made a simulation of not only multiple colonies, but the actual ant nests! Now that is something id like to see!

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

    Man this ant war thing is a great tool for checking out initial map balance in resource distribution.

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

    Cool simulation! I would suggest as @Joseph already said to add queens from the winning colonies that spawn a few new colonies. If you would give these queens specific genes, encoding their traits, and applying combination and/or mutation you could evolve the colonies, changing their traits depending on their environments. I know that real ants colonies do not attack colonies with the same characteristics, until they evolve to much, such that they don't recognise eachother anymore. You could also use that principle to spawn new battles.

  • @Hyena-Dog
    @Hyena-Dog 3 года назад

    I could watch these all day. Love it

  • @tron-do7ii
    @tron-do7ii 2 года назад

    applying RTS strategy to this was fun. the second a colony got stable supply and got it's population ahead of the others it was over.

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

    You should try it with a food source that slowly regrows. I wonder if some kind of equilibrium would develop that allows multiple colonies to survive

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

    Me cheering go yellow in my head The whole time!

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

    some ideas I have:
    one: non-ant enemies
    non-ant enemies can be from a wasp to an antlion and can either have their designated spawn areas or just spawn randomly. when an ant finds one of these non-ant enemies, it will do the same as when it finds an ant from another colony.
    two: different ant species:
    Argentine ants: these ants are able to create a new allied colony, these colonies can assist each other in wars, as well as a couple other things.
    carpenter ants: these ants can actually slowly break down a barrier (I would suggest making two types of barriers, one can be destroyed by carpenters while the other cannot) if ant figures out that they can shorten routes by doing so.
    Army ants: these ants workers are a hybrid between a worker and a soldier, and are stronger than most other soldiers (they would probably cost quite a bit more food to make a single ant, they can also completely move the nest if they feel that there are no longer any food sources that can be quickly accessed.
    Crazy ants: these ants are more likely to break from existing lines and can get a few food areas being harvested at the same time, they also make much wider trails and can make workers slightly faster, and soldiers slightly slower.
    there are many more ideas for other species, and you do need to make sure that everything is balanced (aside from the fact that army ants can completely annihilate entire ecosystems without much trouble in nature)
    Three: parasitic mites
    these mites may grab on to a VERY unlucky ant, this mite will reproduce at least once before killing the ant, this will drop all mites that were on the ant to the ground, where they can be picked up by more ants, these could easily DESTROY a colony, unless handled properly

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

      Also just curious, do you have any plans of making this a public thing that people can play, instead of this being something done on only a youtube channel, making this a public simulation/top-down strategy game would certainly bring me and others joy :D

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

    Slang in my national language calls white noise 'ant war'...
    Now this quite literally is the true definition of ant war.

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

    I was supporting dark blue! They made a pretty nice comeback

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

    I have never been so lost in my entire life that I decided to watch ants fights

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

    First time viewer, this was surprisingly entertaining to watch. :D

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

    I found myself getting really worked up over how in the original 2 colony war, the red ants had such a huge starting advantage. But at the end of the day, anything beyond a perfectly symmetrical stalemate would have a starting advantage for one side or the other, so really I'm just mad at myself for recognizing it too soon and ruining the fun of being surprised.

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

    I assume there is not limit for your innovative way of thinking. Impressive work and remarkable results. Thank you for inspiring the great community. Keep fingers for your goals.

  • @DavidJones-cx4ix
    @DavidJones-cx4ix 3 года назад

    Looks like the position of food is the deciding factor in all these fights the colonies with easier to access food grow faster which allows them to win fights and just snowball from there might be worth adding an ability to convert killed enemy ants into food which would have two possible outcomes either the ants with the better start just win harder or it might allow for ants with weaker starts to come back especially in battles with 4 colonies. 90% sure it would just be a win more situation but it could cause some swings in power depending on how first contact between colonies goes

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

    really great work, the "thanks for watching" at the end is really cool !

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

      You mean thanks for "wathing" :D

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

    It's fun to try to call the winner about mid-way through. I called two out of three. I was certain cyan had it, but blue made a major come back lol.

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

    Lesson 2 : postponing combat allowing a long and late war to happen was a mistake made by cyan and green anthills. A long war meant a war with a new strong enemy that would take over the world. Ahah France vs Germany during WW1, a long trench war that would allow USA to effortlessly take over the first march of the podium. :p
    Now we can understand why Germany chose the blitzkrieg at the beginning of WW2 ;)
    All this thanks to your 4 vs 4 anthill simulation. Once again, thank you.

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

    hmmm It seems that in the 3 colonies simulation. The Yellows got a leg up by having a blue workers accidently find its way to their nest. Resulting in an early creation of the warrior cast. Giving them a vast advantage over the blues when they encountered them in the center. Also allowing them to partially deny the Reds access to the center while completly denying the blues access to it.

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

    This would make the coolest wallpaper engine background

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

    Could add an element of cooperation: Each ant is initially given an aggressive, passive, attack only if attacked first, etc. policies for interacting with other ants. New ants' strategy is chosen with a distribution that matches the distribution of which strategies bring back the most food.
    In some cases cooperation might win out but then switch when resources are scarce.

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

    I could watch this all day.
    I want a strategy game based on this

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

    I realize that I am way late in the game here but I find it amazing that the warrior ants use choke points to control access to food thus starving an opponent out.

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

    A version based on the short story Sand Kings would be amazing, where the colony can evolve different insect parts for foraging and combat. See what evolves to be the apex species. Dead insects turning to dense food would be a thing too.

  • @Twlsted234
    @Twlsted234 4 месяца назад

    8:50 "Thanks for wathing" is actually pretty funny, I didn't even notice at first untill I looked at the timestamps

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

    This video raises all sorts of questions about ant diplomacy, what happens when two colonies meet? Is it always total war? Is there some mechanism by which hostile ant colonies gauge each other's strength and cease hostilities if the war proves too costly?

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

    At this rate you're going to recreate real life ants! You're awesome!

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

    I feel the natural next part is to introduce queens, and genetics. Ants are more likely to attack other ants that are more different than them, but will attack their own kind of push comes to shove. Maybe stats for the ants as well. And if the queen dies the colony can potential make a new queen from an egg, otherwise the hive dies.

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

    Very fun. Reminds me of the civ battle royale from a couple of years ago

  • @Sha.ll0w
    @Sha.ll0w 3 года назад

    Opinion on overall results:
    1v1 basically comes down to which has the closest resources early game
    3 match whichever is in the middle gets squashed and victor is again the one that can scale early game
    4+ match is which one that can scale the earliest whilst doing the least amount of fighting.

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

    This is awesome! Just an idea for possible improvement: from 7:53, the cyan soldiers seem to be trapped, i wonder if there was a way to lead them home after they killed the yellows

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

    A bit before the reds died out in the 4th the light blues and the yellows were fighting and wearing each other out. After the yellows just barely won, the blues pushed in and won the match

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

    I enjoyed wathing. I will wathe the next one. Glad I wathed it.

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

    Okay what if.
    2 colonies, 1 large source of food, in a straight tunnel in the map.
    Both colonies will deplete the food untill they encounter the other.
    there is however, a modification, when an ant is killed, they drop enough food to make ant and a quarter, this means that the ants will eventually subside purely through conflict as they collect the corpses of their enemy and gain more and more numbers through that.

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

    AntSim works strangely. When I click on M, the markers are not displayed. With a population of 4000 ants, time does not accelerate. I can't build and erase walls. Food is also not added when the right mouse button is clicked, although all other functions (displaying ants, pause, accelerated time (if there are less than 4000 ants)) work. Sorry for possible errors in the text, I use a translator.

  • @user-jg6kg1hn1k
    @user-jg6kg1hn1k 3 года назад

    It just keeps getting better and better

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

    I definitely enjoyed "wathing" that!

  • @mirroredchaos
    @mirroredchaos 3 года назад +15

    makes me want to learn C++, being an adult with little free time makes that difficult however.
    also, what kind of pathfinding are you using? is it grid based?

    • @PezzzasWork
      @PezzzasWork  3 года назад +10

      There is no actual "pathfinding" algorithm here, ants find their way on there own using markers :)

    • @mirroredchaos
      @mirroredchaos 3 года назад +8

      @@PezzzasWork that's beautiful, its just like the real thing!

  • @00swinter21
    @00swinter21 3 года назад +2

    can u make a tutorial on these ant simulations about how u get them to run so fast and smooth?

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

    Great video!
    I'm always glad to wath (8:53)

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

    I want to try recreating this in Bevy, I've wanted to learn it for a while and this seems like a perfect fit

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

      I've just started learning Bevy and had the same thought. Did you end up getting anywhere with this?

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

    6:50 red and blue says a lot about war
    7:50 later on, cyan and yellow have a war which is why blue comes out on top