A simple Game of Life implementation in Java
Nie możesz wybrać więcej, niż 25 tematów Tematy muszą się zaczynać od litery lub cyfry, mogą zawierać myślniki ('-') i mogą mieć do 35 znaków.

18 wiersze
323 B

  1. package edu.stuy.goldfish.rules;
  2. import edu.stuy.goldfish.Grid;
  3. public interface RuleSet {
  4. public static int states;
  5. /**
  6. * Run this ruleset on a grid, returning the result.
  7. *
  8. * @param g The grid this is running on
  9. *
  10. * @return The new grid
  11. */
  12. public static Grid run (Grid g);
  13. }