Contest1
Class GameOfLife
java.lang.Object
|
+--Contest1.GameOfLife
- public class GameOfLife
- extends Object
A class that represents a Game Of Life.
Constructor Summary |
GameOfLife()
Default constructor. |
Method Summary |
static void |
main(String[] args)
Main method. |
Methods inherited from class java.lang.Object |
,
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
registerNatives,
toString,
wait,
wait,
wait |
GameOfLife
public GameOfLife()
- Default constructor. Create a game board and a game controller.
main
public static void main(String[] args)
- Main method.
- Parameters:
args
- Command line arguments. Optional arguments may be passed to specify intial
configuration of game board.
- args[0] The desired number of cell rows on the board. (default=20)
- args[1] The desired number of columns. (default=20)
- args[2] The desired width of the board. (default=600, minimum=200)
- args[3] The desired heigth of the board. (default=600, minimum=200)
- args[4] Sleep time for the animation loop in milliseconds. (default=200, minimum=10)
- See Also:
- JavaWorld Code Masters Programming Challenge