Skip to content

Latest commit

 

History

History

computer-aided-design-winter-2017

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 

Computer-aided Design (Winter 2017)

ide language platform

Assignments

Solutions for the assignments below are implemented in the ShapeGrammar iOS app. I have tried to extract the implementation of each task to separate file/class, so all the other files (classes for views, view controllers, etc.) won't be mentioned here - only the ones containing the essential logic.

  • 1. Shape grammar

    Create interface for generating and displaying simple shapes using the grammar defined.

  • 2. Preference function

    Implement a function that will generate a random shape using your grammar. Next add function that will evaluate generated shape and give it a score depending on preferences.

    • ShapeGradingHelper swift
  • 3. Evolutionary algorithm

    An algorithm that will generate a number of sample shapes, and with the help of preference function will pick only those with the highest score to crossbreed a new generations of shapes.

    • ShapeCrossbreedingHelper swift