A simple Game of Life implementation in Java
Ви не можете вибрати більше 25 тем Теми мають розпочинатися з літери або цифри, можуть містити дефіси (-) і не повинні перевищувати 35 символів.

11 роки тому
11 роки тому
1234567891011121314151617181920212223242526
  1. package edu.stuy.goldfish.rules;
  2. import edu.stuy.goldfish.Grid;
  3. public class RuleSet {
  4. public static int states = 0;
  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. return g;
  14. }
  15. /**
  16. * Setup the grid with an interesting initial pattern.
  17. *
  18. * @param g The grid this is running on
  19. */
  20. public static void setup(Grid g) {
  21. }
  22. }