A simple Game of Life implementation in Java
Vous ne pouvez pas sélectionner plus de 25 sujets
Les noms de sujets doivent commencer par une lettre ou un nombre, peuvent contenir des tirets ('-') et peuvent comporter jusqu'à 35 caractères.
|
- package edu.stuy.goldfish.rules;
-
- import edu.stuy.goldfish.Grid;
-
- public class RuleSet {
- public static int states = 0;
-
- /**
- * Run this ruleset on a grid, returning the result.
- *
- * @param g The grid this is running on
- *
- * @return The new grid
- */
- public static Grid run (Grid g) {
- return g;
- }
-
- }
|