Anonymous user
Boids: Difference between revisions
reorganized task description
(→{{header|Java}}: added Java) |
(reorganized task description) |
||
Line 1:
{{draft task}}
A [[wp:Boids|Boids]] algorithm simulates the flocking behaviour of birds. This task requires the creation of a graphical or purely textual
See:▼
* http://www.red3d.com/cwr/boids/▼
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).▼
<pre>.......###############...............................................................
Line 24 ⟶ 19:
............................................................#################........</pre>
▲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).
An even simpler simulation that doesn't contain walls 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 simulation/C]]
|