An open API service indexing awesome lists of open source software.

https://github.com/kartmaan/turtle-anticollision

Random generation of circles bounded by an anti-collision system
https://github.com/kartmaan/turtle-anticollision

anti-collision-system circle collision collision-avoidance collision-detection turtle

Last synced: about 1 year ago
JSON representation

Random generation of circles bounded by an anti-collision system

Awesome Lists containing this project

README

          

# Turtle_anticollision

## What does the program do ?
Circles are randomly drawn on the surface so that they not collide. The coordinates of each circle are generated randomly, these are then analyzed by the anti-collision system to ensure that they do not overlap the coordinates of a circle already drawn.

In order to style the rendering, the circles appearing at the edge of the surface are colored in red, those appearing on an axis 0 in blue, and finally without color for the others. During the generation, information appears on the console allowing to follow the evolution of the number of drawn circles and avoided collisions. At the end of the process more detailed statistics appear.

## Screenshots
### Final rendering with 1600 circles
![screen](https://user-images.githubusercontent.com/11463619/97209438-a08fc800-17bc-11eb-8aca-95f65097960b.png)

### Statistics on console output
![stat](https://user-images.githubusercontent.com/11463619/97209911-2e6bb300-17bd-11eb-82a7-469ad00d95fe.png)