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
- Host: GitHub
- URL: https://github.com/kartmaan/turtle-anticollision
- Owner: Kartmaan
- License: mit
- Created: 2020-10-26T17:24:18.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2023-04-29T14:07:20.000Z (about 3 years ago)
- Last Synced: 2025-01-24T07:29:59.639Z (over 1 year ago)
- Topics: anti-collision-system, circle, collision, collision-avoidance, collision-detection, turtle
- Language: Python
- Homepage:
- Size: 13.7 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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

### Statistics on console output
