Skip to content

OwlHacks 2017 Submission. Uses a genetic algorithm to generate normal polygons 🔺

Notifications You must be signed in to change notification settings

phi-line/genetic-polygons

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

32 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Genetic polygons

Made by Kishan Emens, Rix Lai, Jessica Sendejo, and Joshua Kuehn

Made for OwlHacks Winter 2017 at Foothill College

How does it work

This program uses the process of genetic algorithms to generate a regular polygon. It involves a process of selection and mutation to improve the accuracy of each subsequent generation. An animation of a single run can be viewed, or a timing run can be used to analyze the efficiency of various parameters.

3 vertices 4 vertices 6 vertices
3 vertices 4 vertices 6 vertices

How to use it

First install dependencies using pip and pipenv

pip install pipenv

Run the program using the following command

pipenv run python main.py

You can use the following arguments to modify the results of each run

usage: main.py [-h] [-v [VERTS]] [-p [POPULATION]]

optional arguments:
  -v [VERTS], --verts [VERTS]
                        How many vertices should each generation run
  -p [POPULATION], --population [POPULATION]
                        What population should each generation contain

geometriphylogenetics_2x

About

OwlHacks 2017 Submission. Uses a genetic algorithm to generate normal polygons 🔺

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 2

  •  
  •  

Languages