Boids: Difference between revisions
no edit summary
(reorganized task description) |
No edit summary |
||
(16 intermediate revisions by 6 users not shown) | |||
Line 1:
{{draft task}}
A [[wp:Boids|Boids]] algorithm simulates the flocking
<div style="font-size: .8em;"><pre>
.......###############...............................................................
......#################..............................................................
Line 17 ⟶ 18:
............................................................#################........
...........................................................###################.......
............................................................#################........
</pre></div>
If you implement a purely textual simulation, this is a possible board representation, where "O" are the boids that should go toward the right, "#" are fixed walls that should be avoided by the boids, and "." is free space (using a space is also acceptable for free space, if you add some kind of frame around the board).
Line 23 ⟶ 25:
A simulation that doesn't contain obstacles but only shows flocking behavior is acceptable.
<br><br>
;See also:
* http://www.red3d.com/cwr/boids/
* http://natureofcode.com/book/chapter-6-autonomous-agents/
<br><br>
=={{header|C}}==
See [[Boids
See [[Boids/Go]]
=={{header|Java}}==
See [[Boids
=={{header|Julia}}==
See [[Boids/Julia]]
=={{header|Nim}}==
See [[Boids/Nim]]
=={{header|Phix}}==
See [[Boids/Phix]]<br>
Screenshot: [http://phix.x10.mx/shots/boids.png http://phix.x10.mx/shots/boids.png]
=={{header|Wren}}==
See [[Boids/Wren]]
▲=={{header|Racket}}==
|