Topic: 20 Liners - September 08 - Simulation |
|
---|---|
Author | Thread |
Nervous Wreck (II) Inmate From: Germany |
posted 09-01-2008 23:49
Conway's Game of Life, swarm intelligence, Simulation game, Robotics simulator - find somehing you like, fit it into 20 lines of JavaScript and enjoy the challenge |
Paranoid (IV) Inmate From: cell 3736 |
posted 09-02-2008 10:43
Cool topic. Will try to come up with something |
Paranoid (IV) Inmate From: cell 3736 |
posted 09-19-2008 22:19
Perhaps not the most interesting thing to watch but here's: Bacteria simulator which has nothing to do with biology ^^. Feel free to play around with the get parameters. 'food' is the amount of food (the green things), 'bacs' is the amount of initial bacteria (the smaller red things), bx and by are the starting coordinates for the initial patch of bacteria, 'r' determines the maximum distance between the bacteria when it splits. So ... the red things eat the green things and thus become gradually more red, when they are full, they reproduce and when they're hungry they become gradually fainter until they die and become these little gray dots. Green things diminish and ultimately disappear as they are being eaten. When a red thing divides into 2 bacteria both are half full and the new one appears up to r pixels away from the old one in a random direction. |
Nervous Wreck (II) Inmate From: Germany |
posted 10-06-2008 12:43
Well, it seems like we have a winner! Too bad there weren't any other participants. But it is a very nice simulation, I like how you read the url params! |