|
|
@@ -2,16 +2,16 @@ package edu.stuy.goldfish.rules; |
|
|
|
|
|
|
|
import edu.stuy.goldfish.Grid; |
|
|
|
|
|
|
|
public class RuleSet { |
|
|
|
public interface RuleSet { |
|
|
|
|
|
|
|
/** |
|
|
|
* Run this ruleset on a grid, returning the result. |
|
|
|
* |
|
|
|
* @param g The grid this is running on |
|
|
|
* |
|
|
|
* @return |
|
|
|
* @return The new grid |
|
|
|
*/ |
|
|
|
public static Grid run (Grid g) { |
|
|
|
return g; |
|
|
|
} |
|
|
|
public static Grid run (Grid g); |
|
|
|
|
|
|
|
|
|
|
|
} |