smithers.extras
Class Cellular2D
java.lang.Object
smithers.extras.Cellular2D
public class Cellular2D
- extends java.lang.Object
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
GAME_OF_LIFE
public static final Cellular2D.Ruleset GAME_OF_LIFE
HIGHLIFE
public static final Cellular2D.Ruleset HIGHLIFE
DAY_NIGHT
public static final Cellular2D.Ruleset DAY_NIGHT
Cellular2D
public Cellular2D(Cellular2D.Ruleset rules,
int width,
int height)
Cellular2D
public Cellular2D(Cellular2D.Ruleset rules,
boolean[][] grid)
getRules
public Cellular2D.Ruleset getRules()
randomise
public void randomise(double p)
clear
public void clear()
step
public void step()
gridString
public java.lang.String gridString()
main
public static void main(java.lang.String[] args)
throws java.io.IOException
- Throws:
java.io.IOException