A simple Game of Life implementation in Java
Non puoi selezionare più di 25 argomenti Gli argomenti devono iniziare con una lettera o un numero, possono includere trattini ('-') e possono essere lunghi fino a 35 caratteri.

19 righe
347 B

  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. }