Skip to content

Random generation of circles bounded by an anti-collision system

License

Notifications You must be signed in to change notification settings

Kartmaan/turtle-anticollision

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 

Repository files navigation

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

Statistics on console output

stat

Releases

No releases published

Packages

No packages published

Languages