Changes from meeting

This commit is contained in:
danielwilczak101
2020-09-30 19:33:23 -04:00
parent 625143da7d
commit 8377650c58
6 changed files with 31 additions and 22 deletions

View File

@ -1,2 +1,2 @@
# FROM (. means local) file_name IMPORT function_name
from .is_the_value_5 import is_the_value_5
from .example_is_it_5 import example_is_it_5

View File

@ -1,7 +1,6 @@
def is_the_value_5(chromosome):
def example_is_it_5(chromosome):
"""A very simple case test function - If the chromosomes gene value is a 5 add one
to the chromosomes overall fitness value."""
# Overall fitness value
fitness = 0
# For each gene in the chromosome