Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
branch: master
Commits on Jul 1, 2010
  1. * each gene now has a weight associated with it, affecting the random…

    authored
    … chance it will be selected
    
      on mutation part of crossover process; color, scale, rotate, translate bumped up in weight,
      causing much neater displays out of the box
    
    * enabled alpha blending
    * removed some dead code, added some comments
    * registers! load_r[1,2,3,4] implemented -- loads a random value from the gene into the given
      register (store_r[1,2,3,4] constants added but not used)
    * most genes now use registers instead of the stack (except push, of course)
      * PUSH and POP still do what you would expect, but are useless as nothing uses the
        stack
Commits on May 17, 2010
  1. RGB of RGBA implemented; selection display changed to lower bar; leng…

    authored
    …th > 1 mates for 'gene families'
    
    * selection now puts colored bar in lower part of organism cell
    * mating will now mate 'strips' of genes instead of 1 at-a-time
      * WorldParams.mateLengthPercentage -- if non-zero, we will generate a number between
        0 and 1, then multiplied by this number. We will generate a random length no longer
        than this, choosing 1 of the parent orgs then including the strip all at once -
        subject to mutation
    * DrawOrganism's include 2000 genes instead of 500
    * implemented color RGBA gene - pops 4 numbers off the machine stack, making
      R G B A -- however, alpha doesn't work
Commits on May 15, 2010
  1. fixed to work on hardware iPad

    authored
Commits on May 11, 2010
  1. basic UI is working well on simulator, but redraw is borked on iPad:

    authored
     * click on organism and it will be selected (and turn red in rendering)
     * click on leftmost column of yellow label to reset all unselected orgs to
       random org
     * click on second column of yellow label to mate currently selected orgs
     * click anywhere else on yellow label to redraw
  2. refactoring, cleanup

    authored
Commits on May 5, 2010
  1. moved color/starting position & scale to be controlled by DrawState,

    authored
    which is now passed into DrawOrganism & friends.
    
    instead of two orgs and a child, N orgs and a child (X columns by Y rows),
    arranged in a grid
    
    click on positions in GL view, toggles boolean status of the appropriate child.
    
    disabled animation for now, as touchesBegan moves the evolution forward one
    step
    
    working with GLfloat's instead of CGFloat's in places
Commits on May 4, 2010
  1. initial commit

    authored
Something went wrong with that request. Please try again.