Boids: Difference between revisions
Content added Content deleted
mNo edit summary |
(Added Go) |
||
Line 29: | Line 29: | ||
=={{header|C}}== |
=={{header|C}}== |
||
See [[Boids/C]] |
See [[Boids/C]] |
||
=={{header|Go}}== |
|||
See [[Boids/Go]] |
|||
=={{header|Java}}== |
=={{header|Java}}== |
Revision as of 20:47, 28 January 2020
Boids is a draft programming task. It is not yet considered ready to be promoted as a complete task, for reasons that should be found in its talk page.
A Boids algorithm simulates the flocking behavior of birds. This task requires the creation of a graphical or purely textual simulation of a flock of birds navigating the cave with obstacles depicted below.
.......###############............................................................... .......###############............................................................... ......#################.............................................................. O......###############............................................................... OO.....###############............................................................... OO.....###############....................#.........................#................ OO......#############...................#####...................#########............ OO......#############...................#####..................###########........... OO.......###########...................#######................#############.......... OO.........#######......................#####................###############......... OO............#.........................#####...............#################........ OO........................................#.................#################........ O...........................................................#################........ ............................................................#################........ ...........................................................###################....... ............................................................#################........
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).
A simulation that doesn't contain obstacles but only shows flocking behavior is acceptable.
- See also
C
See Boids/C
Go
See Boids/Go
Java
See Boids/Java
Julia
See Boids/Julia
Phix
See Boids/Phix
Screenshot: http://phix.x10.mx/shots/boids.png