life
Class GBLife

java.lang.Object
  |
  +--life.Life
        |
        +--life.GBLife

public class GBLife
extends Life

GB specific Implementation of Conway's Life genetic algorithim. Demonstrates: Caching a row of a 2d array to avoid the lookup penalty Manually reversing a loop to avoid the get field penalty


Fields inherited from class life.Life
age, count, dx, dy
 
Constructor Summary
GBLife()
           
 
Method Summary
protected  void cls()
          _Very_ dumb clear screen
static void main()
           
protected  void render()
          Implemented by the sub class to render the board
 
Methods inherited from class life.Life
countNeighbours, evolve, update
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

GBLife

public GBLife()
Method Detail

cls

protected final void cls()
_Very_ dumb clear screen

render

protected final void render()
Description copied from class: Life
Implemented by the sub class to render the board
Overrides:
render in class Life

main

public static void main()