cell life simulator cells eat grow spawn click

code a cell life simulator where cells try to eat each other and when they eat others they get bigger (the bigger ones always win) and they spawn when you click

Okay, here is the code for the cell life simulator.

they should hunt eachother

Okay, I've updated the script.js to make larger cells hunt smaller cells within a certain range.

they are not hunting eachother to grow bigger (for cells the same size it should be a 50/50

Okay, I've adjusted the hunting logic and added the 50/50 chance for same-sized cell collisions.

add a option to spawn 12 random sized cell

Okay, I've added a button to spawn 12 random cells and updated the necessary files.

add a size limit of 20

Okay, I've added a maximum size limit of 20 for the cell radius.

Google

gemini

Gemini 2.5 Pro

https://preview-kvqudy--hm-ge.app.jit.dev

Console
000

No logs available to display