A simple Game of Life implementation in Java
25'ten fazla konu seçemezsiniz Konular bir harf veya rakamla başlamalı, kısa çizgiler ('-') içerebilir ve en fazla 35 karakter uzunluğunda olabilir.

38 satır
589 B

  1. package edu.stuy.goldfish;
  2. import java.awt.Color;
  3. public class Render {
  4. public Render (int width, int height) {
  5. }
  6. public Render () {
  7. this(100,100);
  8. }
  9. /**
  10. * Render a color to a position
  11. *
  12. * This should draw to a buffer, which should be
  13. * rendered with render()
  14. *
  15. * @arg x The x coordinate
  16. * @arg y The y coordinate
  17. * @arg c The color to draw
  18. */
  19. public void draw (int x, int y, Color c) {
  20. }
  21. /**
  22. * Renders the stored buffer to the screen.
  23. */
  24. public void render () {
  25. }
  26. }